summaryrefslogtreecommitdiff
path: root/gtk2_ardour/processor_box.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-04-03 05:21:40 +0200
committerRobin Gareus <robin@gareus.org>2016-04-03 05:21:40 +0200
commit4cedc07b3e18373322ebe3f988f8f0bae04d8ca1 (patch)
tree22cce8aec60c28700a495e947ad5c5b22740124d /gtk2_ardour/processor_box.cc
parentf827168b67043ab4009620ef87e2350dce7d7754 (diff)
add GUI to configure/connect sidechain
Diffstat (limited to 'gtk2_ardour/processor_box.cc')
-rw-r--r--gtk2_ardour/processor_box.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/gtk2_ardour/processor_box.cc b/gtk2_ardour/processor_box.cc
index 8dd3748834..fd15ec217d 100644
--- a/gtk2_ardour/processor_box.cc
+++ b/gtk2_ardour/processor_box.cc
@@ -2380,6 +2380,7 @@ ProcessorBox::maybe_add_processor_pin_mgr (boost::weak_ptr<Processor> w)
PluginPinWindowProxy* wp = new PluginPinWindowProxy (
string_compose ("PM-%2-%3", _route->id(), p->id()), w);
+ wp->set_session (_session);
const XMLNode* ui_xml = _session->extra_xml (X_("UI"));
if (ui_xml) {
@@ -3901,6 +3902,13 @@ PluginPinWindowProxy::~PluginPinWindowProxy()
_window = 0;
}
+ARDOUR::SessionHandlePtr*
+PluginPinWindowProxy::session_handle ()
+{
+ ArdourWindow* aw = dynamic_cast<ArdourWindow*> (_window);
+ if (aw) { return aw; }
+ return 0;
+}
Gtk::Window*
PluginPinWindowProxy::get (bool create)
@@ -3916,6 +3924,10 @@ PluginPinWindowProxy::get (bool create)
return 0;
}
_window = new PluginPinDialog (pi);
+ ArdourWindow* aw = dynamic_cast<ArdourWindow*> (_window);
+ if (aw) {
+ aw->set_session (_session);
+ }
}
_window->show_all ();