From 28392bdcdbef5a7afe94fd05e3f36674fe3eaee7 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 25 Jan 2022 03:45:02 +0100 Subject: [PATCH] GUI property "visible" applies only to automation-lanes Tracks and Busses use PresentationInfo::hidden --- gtk2_ardour/audio_time_axis.cc | 14 -------------- gtk2_ardour/audio_time_axis.h | 6 ------ gtk2_ardour/mixer_strip.cc | 1 - gtk2_ardour/route_time_axis.cc | 8 -------- 4 files changed, 29 deletions(-) diff --git a/gtk2_ardour/audio_time_axis.cc b/gtk2_ardour/audio_time_axis.cc index cb6451ab9a..4784f68ac5 100644 --- a/gtk2_ardour/audio_time_axis.cc +++ b/gtk2_ardour/audio_time_axis.cc @@ -164,20 +164,6 @@ AudioTimeAxisView::audio_view() return dynamic_cast(_view); } -guint32 -AudioTimeAxisView::show_at (double y, int& nth, Gtk::VBox *parent) -{ - set_gui_property ("visible", true); - return TimeAxisView::show_at (y, nth, parent); -} - -void -AudioTimeAxisView::hide () -{ - set_gui_property ("visible", false); - TimeAxisView::hide (); -} - void AudioTimeAxisView::create_automation_child (const Evoral::Parameter& param, bool show) { diff --git a/gtk2_ardour/audio_time_axis.h b/gtk2_ardour/audio_time_axis.h index 99ba8a7b8f..7aaae67dc2 100644 --- a/gtk2_ardour/audio_time_axis.h +++ b/gtk2_ardour/audio_time_axis.h @@ -76,9 +76,6 @@ public: void set_show_waveforms_recording (bool yn); - /* Overridden from parent to store display state */ - guint32 show_at (double y, int& nth, Gtk::VBox *parent); - void create_automation_child (const Evoral::Parameter& param, bool show); void first_idle (); @@ -97,9 +94,6 @@ private: Gtk::Menu* build_mode_menu(); void build_automation_action_menu (bool); - - void hide (); - void update_control_names (); }; diff --git a/gtk2_ardour/mixer_strip.cc b/gtk2_ardour/mixer_strip.cc index 999943603f..c2a745a480 100644 --- a/gtk2_ardour/mixer_strip.cc +++ b/gtk2_ardour/mixer_strip.cc @@ -882,7 +882,6 @@ void MixerStrip::set_packed (bool yn) { _packed = yn; - set_gui_property ("visible", _packed); } void diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc index bd6ab9e728..0cfdb826d7 100644 --- a/gtk2_ardour/route_time_axis.cc +++ b/gtk2_ardour/route_time_axis.cc @@ -174,14 +174,6 @@ RouteTimeAxisView::set_route (boost::shared_ptr rt) set_height (preset_height (HeightNormal)); } - if (!_route->is_auditioner()) { - if (gui_property ("visible").empty()) { - set_gui_property ("visible", true); - } - } else { - set_gui_property ("visible", false); - } - timestretch_rect = 0; no_redraw = false;