summaryrefslogtreecommitdiff
path: root/gtk2_ardour/plugin_ui.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/plugin_ui.cc')
-rw-r--r--gtk2_ardour/plugin_ui.cc20
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