From 8aa9508c82f32efcf9c7c00e2c9e76268d4dddce Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 16 Feb 2008 22:43:18 +0000 Subject: Merge with 2.0-ongoing R3071. git-svn-id: svn://localhost/ardour2/branches/3.0@3073 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/processor_box.cc | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'gtk2_ardour/processor_box.cc') diff --git a/gtk2_ardour/processor_box.cc b/gtk2_ardour/processor_box.cc index e012922e0f..9f6dff823b 100644 --- a/gtk2_ardour/processor_box.cc +++ b/gtk2_ardour/processor_box.cc @@ -400,6 +400,7 @@ ProcessorBox::processor_plugin_chosen (boost::shared_ptr plugin) weird_plugin_dialog (*plugin, err, _route); // XXX SHAREDPTR delete plugin here .. do we even need to care? } else { + processor->set_active(true); processor->ActiveChanged.connect (bind (mem_fun (*this, &ProcessorBox::show_processor_active), boost::weak_ptr(processor))); } } @@ -1137,13 +1138,20 @@ ProcessorBox::edit_processor (boost::shared_ptr processor) plugin_ui = reinterpret_cast (plugin_processor->get_gui()); } - if (plugin_ui->is_visible()) { - plugin_ui->get_window()->raise (); - } else { - plugin_ui->show_all (); - plugin_ui->present (); - } -#endif + plugin_ui = new PluginUIWindow (plugin_insert); + + // plugin_ui->set_keep_above (true); + + WindowTitle title(Glib::get_application_name()); + title += generate_redirect_title (plugin_insert); + plugin_ui->set_title (title.get_string()); + + plugin_insert->set_gui (plugin_ui); + + // change window title when route name is changed + _route->name_changed.connect (bind (mem_fun(*this, &RedirectBox::route_name_changed), plugin_ui, boost::weak_ptr (plugin_insert))); +#endif + } else { warning << "Unsupported plugin sent to ProcessorBox::edit_processor()" << endmsg; return; -- cgit v1.2.3