From 518f7f9892776843f17a59960e081ff1d1d56a50 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 5 Jun 2016 16:13:52 -0400 Subject: RouteUI connects to Route's PropertyChange signal; derived types implement route_property_changed() --- gtk2_ardour/mixer_strip.cc | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'gtk2_ardour/mixer_strip.cc') diff --git a/gtk2_ardour/mixer_strip.cc b/gtk2_ardour/mixer_strip.cc index 67e1d5f40f..30859c8d5e 100644 --- a/gtk2_ardour/mixer_strip.cc +++ b/gtk2_ardour/mixer_strip.cc @@ -649,7 +649,6 @@ MixerStrip::set_route (boost::shared_ptr rt) } _route->comment_changed.connect (route_connections, invalidator (*this), boost::bind (&MixerStrip::setup_comment_button, this), gui_context()); - _route->PropertyChanged.connect (route_connections, invalidator (*this), boost::bind (&MixerStrip::property_changed, this, _1), gui_context()); _route->gain_control()->MasterStatusChange.connect (route_connections, invalidator (*this), @@ -1750,10 +1749,8 @@ MixerStrip::set_selected (bool yn) } void -MixerStrip::property_changed (const PropertyChange& what_changed) +MixerStrip::route_property_changed (const PropertyChange& what_changed) { - RouteUI::property_changed (what_changed); - if (what_changed.contains (ARDOUR::Properties::name)) { name_changed (); } @@ -2626,6 +2623,16 @@ MixerStrip::update_track_number_visibility () } } +bool +MixerStrip::is_selected () const +{ + if (!_route) { + return false; + } + + return _route->presentation_info().selected(); +} + Gdk::Color MixerStrip::color () const { -- cgit v1.2.3