diff options
author | Carl Hetherington <carl@carlh.net> | 2011-03-07 13:04:46 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-03-07 13:04:46 +0000 |
commit | 8f45604f277f07cbde4c73a6fe3aeb802df19eab (patch) | |
tree | 4a0f62813dafb11bc266d49b9a9be9800a0f4666 /gtk2_ardour/mixer_strip.cc | |
parent | 92a5e4da48b85017647fb2c55d2d76fff47243e1 (diff) |
Make Active apply to the selection.
git-svn-id: svn://localhost/ardour2/branches/3.0@9089 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/mixer_strip.cc')
-rw-r--r-- | gtk2_ardour/mixer_strip.cc | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/gtk2_ardour/mixer_strip.cc b/gtk2_ardour/mixer_strip.cc index 919ec86ada..ba79bd2419 100644 --- a/gtk2_ardour/mixer_strip.cc +++ b/gtk2_ardour/mixer_strip.cc @@ -1321,13 +1321,13 @@ MixerStrip::show_route_color () { name_button.modify_bg (STATE_NORMAL, color()); top_event_box.modify_bg (STATE_NORMAL, color()); - route_active_changed (); + reset_strip_style (); } void MixerStrip::show_passthru_color () { - route_active_changed (); + reset_strip_style (); } void @@ -1345,9 +1345,10 @@ MixerStrip::build_route_ops_menu () items.push_back (MenuElem (_("Rename..."), sigc::mem_fun(*this, &RouteUI::route_rename))); rename_menu_item = &items.back(); items.push_back (SeparatorElem()); - items.push_back (CheckMenuElem (_("Active"), sigc::mem_fun (*this, &RouteUI::toggle_route_active))); - route_active_menu_item = dynamic_cast<CheckMenuItem *> (&items.back()); - route_active_menu_item->set_active (_route->active()); + items.push_back (CheckMenuElem (_("Active"))); + CheckMenuItem* i = dynamic_cast<CheckMenuItem *> (&items.back()); + i->set_active (_route->active()); + i->signal_activate().connect (sigc::bind (sigc::mem_fun (*this, &RouteUI::set_route_active), !_route->active(), false)); items.push_back (SeparatorElem()); @@ -1387,9 +1388,8 @@ MixerStrip::name_button_button_press (GdkEventButton* ev) void MixerStrip::list_route_operations () { - if (route_ops_menu == 0) { - build_route_ops_menu (); - } + delete route_ops_menu; + build_route_ops_menu (); } void @@ -1497,13 +1497,6 @@ MixerStrip::hide_processor_editor (boost::weak_ptr<Processor> p) } void -MixerStrip::route_active_changed () -{ - RouteUI::route_active_changed (); - reset_strip_style (); -} - -void MixerStrip::reset_strip_style () { if (_current_delivery && boost::dynamic_pointer_cast<Send>(_current_delivery)) { |