diff options
author | Robin Gareus <robin@gareus.org> | 2019-05-25 00:12:55 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-05-25 00:12:55 +0200 |
commit | 92cfed14cf3ab5cdf2d0f5b0c5d8662aaeb73c5c (patch) | |
tree | a353d38b2e942af4e30e78c6ae89f8f884e4776d /gtk2_ardour/route_params_ui.cc | |
parent | ce8740cf5e45b57e4d3551689ac144076b08e336 (diff) |
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).
Diffstat (limited to 'gtk2_ardour/route_params_ui.cc')
-rw-r--r-- | gtk2_ardour/route_params_ui.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk2_ardour/route_params_ui.cc b/gtk2_ardour/route_params_ui.cc index 33a71f8757..95a945d27c 100644 --- a/gtk2_ardour/route_params_ui.cc +++ b/gtk2_ardour/route_params_ui.cc @@ -41,6 +41,7 @@ #include "gui_thread.h" #include "io_selector.h" #include "keyboard.h" +#include "mixer_ui.h" #include "mixer_strip.h" #include "port_insert_ui.h" #include "plugin_selector.h" @@ -140,7 +141,6 @@ RouteParams_UI::RouteParams_UI () add_events (Gdk::KEY_PRESS_MASK|Gdk::KEY_RELEASE_MASK|Gdk::BUTTON_RELEASE_MASK); - _plugin_selector = new PluginSelector (PluginManager::instance()); show_all(); } @@ -228,6 +228,11 @@ RouteParams_UI::map_frozen() } } +PluginSelector* +RouteParams_UI::plugin_selector() { + return Mixer_UI::instance()->plugin_selector (); +} + void RouteParams_UI::setup_processor_boxes() { @@ -406,7 +411,6 @@ RouteParams_UI::set_session (Session *sess) ArdourWindow::set_session (sess); route_display_model->clear(); - _plugin_selector->set_session (_session); if (_session) { boost::shared_ptr<RouteList> r = _session->get_routes(); |