diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-11-02 16:46:49 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-11-02 16:46:49 +0000 |
commit | 592bfa3616678838bb80b925d66fbadae2d20d7e (patch) | |
tree | 80b9db7307f325c2118964a8d8334d8b3c70687f /gtk2_ardour/mixer_strip.cc | |
parent | 36803567f0ad2c385f3259856a282b5ce3b4e0e2 (diff) |
mute and send-alert buttons are now ArdourButtons
git-svn-id: svn://localhost/ardour2/branches/3.0@10397 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/mixer_strip.cc')
-rw-r--r-- | gtk2_ardour/mixer_strip.cc | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/gtk2_ardour/mixer_strip.cc b/gtk2_ardour/mixer_strip.cc index caf5a7ccfa..6d5a270620 100644 --- a/gtk2_ardour/mixer_strip.cc +++ b/gtk2_ardour/mixer_strip.cc @@ -187,7 +187,7 @@ MixerStrip::init () hide_button.set_events (hide_button.get_events() & ~(Gdk::ENTER_NOTIFY_MASK|Gdk::LEAVE_NOTIFY_MASK)); - mute_button->set_name ("MixerMuteButton"); + // mute_button->set_name ("MixerMuteButton"); solo_button->set_name ("MixerSoloButton"); monitor_input_button->set_diameter (3); @@ -587,7 +587,7 @@ MixerStrip::set_width_enum (Width w, void* owner) switch (w) { case Wide: if (show_sends_button) { - ((Gtk::Label*)show_sends_button->get_child())->set_text (_("Sends")); + show_sends_button->set_text (_("Sends")); } ((Gtk::Label*)gpm.gain_automation_style_button.get_child())->set_text ( @@ -611,7 +611,7 @@ MixerStrip::set_width_enum (Width w, void* owner) case Narrow: if (show_sends_button) { - ((Gtk::Label*)show_sends_button->get_child())->set_text (_("Snd")); + show_sends_button->set_text (_("Snd")); } ((Gtk::Label*)gpm.gain_automation_style_button.get_child())->set_text ( @@ -1673,8 +1673,7 @@ MixerStrip::switch_io (boost::shared_ptr<Route> target) since we're not the target. */ send_blink_connection.disconnect (); - show_sends_button->set_active (false); - show_sends_button->set_state (STATE_NORMAL); + show_sends_button->unset_active_state (); } if (!target) { @@ -1766,7 +1765,7 @@ void MixerStrip::revert_to_default_display () { if (show_sends_button) { - show_sends_button->set_active (false); + show_sends_button->unset_active_state (); } drop_send (); @@ -1788,7 +1787,7 @@ MixerStrip::set_button_names () switch (_width) { case Wide: rec_enable_button_label.set_text (_("Rec")); - mute_button_label.set_text (_("Mute")); + mute_button->set_text (_("Mute")); monitor_input_button->set_text (_("In")); monitor_disk_button->set_text (_("Disk")); @@ -1820,7 +1819,7 @@ MixerStrip::set_button_names () default: rec_enable_button_label.set_text (_("R")); - mute_button_label.set_text (_("M")); + mute_button->set_text (_("M")); monitor_input_button->set_text (_("I")); monitor_disk_button->set_text (_("D")); if (_route && _route->solo_safe()) { |