summaryrefslogtreecommitdiff
path: root/gtk2_ardour/mixer_strip.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-06-05 16:13:52 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2016-06-05 16:33:02 -0400
commit518f7f9892776843f17a59960e081ff1d1d56a50 (patch)
treef9ba24adc37542e8a6710a29564eded483ceaaaa /gtk2_ardour/mixer_strip.cc
parentc0e5265b14a1126237a90c204051e88f7e25ae5a (diff)
RouteUI connects to Route's PropertyChange signal; derived types implement route_property_changed()
Diffstat (limited to 'gtk2_ardour/mixer_strip.cc')
-rw-r--r--gtk2_ardour/mixer_strip.cc15
1 files changed, 11 insertions, 4 deletions
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<Route> 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
{