diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-06-05 16:13:52 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-06-05 16:33:02 -0400 |
commit | 518f7f9892776843f17a59960e081ff1d1d56a50 (patch) | |
tree | f9ba24adc37542e8a6710a29564eded483ceaaaa /gtk2_ardour/route_time_axis.cc | |
parent | c0e5265b14a1126237a90c204051e88f7e25ae5a (diff) |
RouteUI connects to Route's PropertyChange signal; derived types implement route_property_changed()
Diffstat (limited to 'gtk2_ardour/route_time_axis.cc')
-rw-r--r-- | gtk2_ardour/route_time_axis.cc | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc index e6a6b7cdd2..5c4487818a 100644 --- a/gtk2_ardour/route_time_axis.cc +++ b/gtk2_ardour/route_time_axis.cc @@ -129,6 +129,14 @@ RouteTimeAxisView::RouteTimeAxisView (PublicEditor& ed, Session* sess, ArdourCan } void +RouteTimeAxisView::route_property_changed (const PBD::PropertyChange& what_changed) +{ + if (what_changed.contains (ARDOUR::Properties::name)) { + label_view (); + } +} + +void RouteTimeAxisView::set_route (boost::shared_ptr<Route> rt) { RouteUI::set_route (rt); @@ -291,7 +299,6 @@ RouteTimeAxisView::set_route (boost::shared_ptr<Route> rt) _y_position = -1; _route->processors_changed.connect (*this, invalidator (*this), boost::bind (&RouteTimeAxisView::processors_changed, this, _1), gui_context()); - _route->PropertyChanged.connect (*this, invalidator (*this), boost::bind (&RouteTimeAxisView::route_property_changed, this, _1), gui_context()); if (is_track()) { @@ -458,14 +465,6 @@ RouteTimeAxisView::parameter_changed (string const & p) } void -RouteTimeAxisView::route_property_changed (const PropertyChange& what_changed) -{ - if (what_changed.contains (ARDOUR::Properties::name)) { - label_view (); - } -} - -void RouteTimeAxisView::take_name_changed (void *src) { if (src != this) { |