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/time_axis_view.cc | |
parent | 2047ee527c688ed2c2bedea79a7e01088da58d72 (diff) |
many changes associated with rationalizing selection flow
Diffstat (limited to 'gtk2_ardour/time_axis_view.cc')
-rw-r--r-- | gtk2_ardour/time_axis_view.cc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gtk2_ardour/time_axis_view.cc b/gtk2_ardour/time_axis_view.cc index de8c17f456..6a2d80e0eb 100644 --- a/gtk2_ardour/time_axis_view.cc +++ b/gtk2_ardour/time_axis_view.cc @@ -742,9 +742,15 @@ TimeAxisView::popup_display_menu (guint32 when) } void -TimeAxisView::show_selected () +TimeAxisView::set_selected (bool yn) { - if (selected()) { + if (yn == selected()) { + return; + } + + Selectable::set_selected (yn); + + if (_selected) { time_axis_frame.set_shadow_type (Gtk::SHADOW_IN); time_axis_frame.set_name ("MixerStripSelectedFrame"); controls_ebox.set_name (controls_base_selected_name); @@ -770,6 +776,7 @@ TimeAxisView::show_selected () } time_axis_frame.show(); + } void |