diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-06-10 15:00:43 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-06-10 15:00:43 -0400 |
commit | 8ceab4e193bb451607b68bdf892b79893b399d1a (patch) | |
tree | 153a6b0781c61cfd2cd7f60f95adcb8f53b6e016 /gtk2_ardour/vca_time_axis.cc | |
parent | fbc51c03ef1907e0869bb31b7262c533769b25bb (diff) |
make sure editor can follow visibility changes for VCAs
Diffstat (limited to 'gtk2_ardour/vca_time_axis.cc')
-rw-r--r-- | gtk2_ardour/vca_time_axis.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gtk2_ardour/vca_time_axis.cc b/gtk2_ardour/vca_time_axis.cc index 3bbb4a5f4c..0c77fd66f8 100644 --- a/gtk2_ardour/vca_time_axis.cc +++ b/gtk2_ardour/vca_time_axis.cc @@ -304,3 +304,19 @@ VCATimeAxisView::set_height (uint32_t h, TrackHeightMode m) set_gui_property ("height", h); _vca->gui_changed ("track_height", (void*) 0); /* EMIT SIGNAL */ } + +bool +VCATimeAxisView::marked_for_display () const +{ + return !_vca->presentation_info().hidden(); +} + +bool +VCATimeAxisView::set_marked_for_display (bool yn) +{ + if (yn == _vca->presentation_info().hidden()) { + _vca->presentation_info().set_hidden (!yn); + return true; // things changed + } + return false; +} |