From 0a508ffb5dd5fc3251fdb9d71d022b1c2bf4ba9e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 3 Feb 2010 19:00:58 +0000 Subject: [PATCH] ifdef'd out deferred plugin selector load (-DDEFER_PLUGIN_SELECTOR_LOAD will improve startup time significantly). git-svn-id: svn://localhost/ardour2/branches/3.0@6629 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/mixer_ui.cc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/mixer_ui.cc b/gtk2_ardour/mixer_ui.cc index b750f8a470..10aa98995d 100644 --- a/gtk2_ardour/mixer_ui.cc +++ b/gtk2_ardour/mixer_ui.cc @@ -250,10 +250,12 @@ Mixer_UI::Mixer_UI () group_display.show(); auto_rebinding = FALSE; - + MixerStrip::CatchDeletion.connect (*this, ui_bind (&Mixer_UI::remove_strip, this, _1), gui_context()); +#ifndef DEFER_PLUGIN_SELECTOR_LOAD _plugin_selector = new PluginSelector (PluginManager::the_manager ()); +#endif } Mixer_UI::~Mixer_UI () @@ -492,7 +494,7 @@ Mixer_UI::set_session (Session* sess) route_groups_changed (); if (_visible) { - show_window(); + show_window(); } start_updating (); @@ -1580,5 +1582,10 @@ Mixer_UI::set_route_group_activation (RouteGroup* g, bool a) PluginSelector* Mixer_UI::plugin_selector() { +#ifdef DEFER_PLUGIN_SELECTOR_LOAD + if (!_plugin_selector) + _plugin_selector = new PluginSelector (PluginManager::the_manager ()); +#endif + return _plugin_selector; }