summaryrefslogtreecommitdiff
path: root/gtk2_ardour/redirect_box.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2008-02-23 15:22:58 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2008-02-23 15:22:58 +0000
commit7e531020180affdae2d98ddd93594e7a1e9b4721 (patch)
tree2329a282a5be65183968e2db2c188d6ec6a843bd /gtk2_ardour/redirect_box.cc
parent80c6243429ea1996ec0d3be2f42d33d92e5f578f (diff)
fix up use of plugin input counts when running; SAE menu tweaks; fix up management and display of edit point selection; AU window stuff
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3117 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/redirect_box.cc')
-rw-r--r--gtk2_ardour/redirect_box.cc11
1 files changed, 8 insertions, 3 deletions
diff --git a/gtk2_ardour/redirect_box.cc b/gtk2_ardour/redirect_box.cc
index 12434662d6..050ffdef55 100644
--- a/gtk2_ardour/redirect_box.cc
+++ b/gtk2_ardour/redirect_box.cc
@@ -1088,10 +1088,15 @@ RedirectBox::edit_redirect (boost::shared_ptr<Redirect> redirect)
if ((plugin_insert = boost::dynamic_pointer_cast<PluginInsert> (insert)) != 0) {
PluginUIWindow *plugin_ui;
+
+ /* these are both allowed to be null */
+
+ Container* toplevel = get_toplevel();
+ Window* win = dynamic_cast<Gtk::Window*>(toplevel);
if (plugin_insert->get_gui() == 0) {
-
- plugin_ui = new PluginUIWindow (plugin_insert);
+
+ plugin_ui = new PluginUIWindow (win, plugin_insert);
WindowTitle title(Glib::get_application_name());
title += generate_redirect_title (plugin_insert);
@@ -1102,9 +1107,9 @@ RedirectBox::edit_redirect (boost::shared_ptr<Redirect> redirect)
// 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)));
-
} else {
plugin_ui = reinterpret_cast<PluginUIWindow *> (plugin_insert->get_gui());
+ plugin_ui->set_parent (win);
}
if (plugin_ui->is_visible()) {