diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-10-01 16:28:02 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-10-01 16:28:02 +0000 |
commit | 37779a45c9c18076590295b2e342cffa99c46910 (patch) | |
tree | e179d34753964670b316ed09a56930d9711706a4 /gtk2_ardour/plugin_ui.cc | |
parent | 4a46fccc6834f1cc00b02301355fc0fad8ae4083 (diff) |
LV2 external UI patch from nedko via 2.X and a couple of .rej's
git-svn-id: svn://localhost/ardour2/branches/3.0@5702 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/plugin_ui.cc')
-rw-r--r-- | gtk2_ardour/plugin_ui.cc | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/gtk2_ardour/plugin_ui.cc b/gtk2_ardour/plugin_ui.cc index 86dbcd829b..43c98b0ef2 100644 --- a/gtk2_ardour/plugin_ui.cc +++ b/gtk2_ardour/plugin_ui.cc @@ -210,11 +210,17 @@ PluginUIWindow::on_focus_out_event (GdkEventFocus *ev) void PluginUIWindow::on_show () { + set_role("plugin_ui"); + if (_pluginui) { _pluginui->update_presets (); } - Window::on_show (); + if (_pluginui) { + if (_pluginui->on_window_show (_title)) { + Window::on_show (); + } + } if (parent) { // set_transient_for (*parent); @@ -225,6 +231,18 @@ void PluginUIWindow::on_hide () { Window::on_hide (); + + if (_pluginui) { + _pluginui->on_window_hide (); + } +} + +void +PluginUIWindow::set_title(const Glib::ustring& title) +{ + //cout << "PluginUIWindow::set_title(\"" << title << "\"" << endl; + Gtk::Window::set_title(title); + _title = title; } bool |