- if (plugin_ui->is_visible()) {
- plugin_ui->get_window()->raise ();
- } else {
- plugin_ui->show_all ();
- plugin_ui->present ();
- }
-#ifdef HAVE_AUDIOUNIT
- } else if (type == ARDOUR::AudioUnit) {
- AUPluginUI* plugin_ui;
- if (plugin_processor->get_gui() == 0) {
- plugin_ui = new AUPluginUI (plugin_processor);
- } else {
- plugin_ui = reinterpret_cast<AUPluginUI*> (plugin_processor->get_gui());
- }
-
- 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<PluginInsert> (plugin_insert)));
-#endif
-
- } else {
- warning << "Unsupported plugin sent to ProcessorBox::edit_processor()" << endmsg;
- return;
- }
-
- } else if ((port_processor = boost::dynamic_pointer_cast<PortInsert> (processor)) != 0) {
-
+ plugin_insert->set_gui (plugin_ui);
+
+ // change window title when route name is changed
+ _route->NameChanged.connect (bind (mem_fun(*this, &ProcessorBox::route_name_changed), plugin_ui, boost::weak_ptr<PluginInsert> (plugin_insert)));
+
+ } else {
+ plugin_ui = reinterpret_cast<PluginUIWindow *> (plugin_insert->get_gui());
+ plugin_ui->set_parent (win);
+ }
+
+ gidget = plugin_ui;
+
+ } else if ((port_insert = boost::dynamic_pointer_cast<PortInsert> (processor)) != 0) {
+