From 92cfed14cf3ab5cdf2d0f5b0c5d8662aaeb73c5c Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 25 May 2019 00:12:55 +0200 Subject: Re-use the Mixer's PluginManager (singleton) Previously there were three plugin-manager instances (two of which were never destroyed). There were also 3 sets of context-menus (favorites, by tag, by author..), all of which were re-built when plugin stati changed. Since the Plugin-manager is a modal dialog, it can be re-used in all contexts (route-ui, monitor-section, mixer). --- gtk2_ardour/monitor_section.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gtk2_ardour/monitor_section.h') diff --git a/gtk2_ardour/monitor_section.h b/gtk2_ardour/monitor_section.h index 0a0a0fd7a2..c08513717b 100644 --- a/gtk2_ardour/monitor_section.h +++ b/gtk2_ardour/monitor_section.h @@ -36,7 +36,6 @@ #include "route_ui.h" #include "monitor_selector.h" -#include "plugin_selector.h" #include "processor_box.h" #include "processor_selection.h" @@ -44,6 +43,8 @@ namespace ArdourWidgets { class TearOff; } +class PluginSelector; + class MonitorSection : public RouteUI, public Gtk::EventBox { public: @@ -56,7 +57,7 @@ public: std::string state_id() const; - PluginSelector* plugin_selector() { return _plugin_selector; } + PluginSelector* plugin_selector(); void use_others_actions (); @@ -177,7 +178,6 @@ private: void route_property_changed (const PBD::PropertyChange&) {} ProcessorBox* insert_box; - PluginSelector* _plugin_selector; ProcessorSelection _rr_selection; void help_count_processors (boost::weak_ptr p, uint32_t* cnt) const; uint32_t count_processors (); -- cgit v1.2.3