diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-07-06 13:37:30 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-07-06 13:39:10 -0400 |
commit | da7d7f950233f109f82f7e7ea5c62f81ef3d7bbb (patch) | |
tree | 14fdd5b6d40af1b3807067058aef2b22460dba30 /gtk2_ardour/route_ui.cc | |
parent | 2047ee527c688ed2c2bedea79a7e01088da58d72 (diff) |
many changes associated with rationalizing selection flow
Diffstat (limited to 'gtk2_ardour/route_ui.cc')
-rw-r--r-- | gtk2_ardour/route_ui.cc | 34 |
1 files changed, 7 insertions, 27 deletions
diff --git a/gtk2_ardour/route_ui.cc b/gtk2_ardour/route_ui.cc index 7ecb4f2031..5b6217af4a 100644 --- a/gtk2_ardour/route_ui.cc +++ b/gtk2_ardour/route_ui.cc @@ -2144,33 +2144,6 @@ RouteUI::route_gui_changed (PropertyChange const& what_changed) route_color_changed (); } } - - if (what_changed.contains (Properties::selected)) { - show_selected (); - } -} - -void -RouteUI::set_selected (bool yn) -{ - Selectable::set_selected (yn); - if (_route) { - _route->presentation_info().set_selected (yn); - } -} - -bool -RouteUI::selected () const -{ - /* XXX not sure if this is a wise design. Probably don't really want - * the cached _selected value from Selectable. - */ - - if (!_route) { - return _selected; - } - - return _route->presentation_info().selected(); } void @@ -2365,3 +2338,10 @@ RouteUI::mark_hidden (bool yn) } return false; } + +boost::shared_ptr<Stripable> +RouteUI::stripable () const +{ + return _route; +} + |