diff options
author | Robin Gareus <robin@gareus.org> | 2017-07-21 21:48:07 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-07-21 21:48:20 +0200 |
commit | ce48dfdeba3e20f18d63b52f49547d930ffc0ec0 (patch) | |
tree | 09f23c08ac00f97162c75ea5487a745a9f3acab9 /gtk2_ardour | |
parent | 243cd35a36473e78dc9d09985deee2198410f570 (diff) |
Hide VTAV header controls for small height
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/vca_time_axis.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk2_ardour/vca_time_axis.cc b/gtk2_ardour/vca_time_axis.cc index 887a666934..bd31c73b1a 100644 --- a/gtk2_ardour/vca_time_axis.cc +++ b/gtk2_ardour/vca_time_axis.cc @@ -341,6 +341,16 @@ void VCATimeAxisView::set_height (uint32_t h, TrackHeightMode m) { TimeAxisView::set_height (h, m); + if (height >= preset_height (HeightNormal)) { + drop_button.show (); + automation_button.show (); + gain_meter.get_gain_slider().show (); + } else { + drop_button.hide (); + automation_button.hide (); + gain_meter.get_gain_slider().hide (); + } + set_gui_property ("height", h); _vca->gui_changed ("track_height", (void*) 0); /* EMIT SIGNAL */ } |