From 9851334e79a585775d9e57e270fc00f497eaaf84 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 6 Jun 2009 22:41:50 +0000 Subject: Fix window titles. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2093 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/NodeControlWindow.cpp | 4 ++-- src/gui/NodeModule.cpp | 1 + src/gui/NodePropertiesWindow.cpp | 2 +- src/gui/PatchWindow.cpp | 2 +- src/gui/PortPropertiesWindow.cpp | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/gui/NodeControlWindow.cpp b/src/gui/NodeControlWindow.cpp index 167d7255..65ab5f21 100644 --- a/src/gui/NodeControlWindow.cpp +++ b/src/gui/NodeControlWindow.cpp @@ -45,7 +45,7 @@ NodeControlWindow::NodeControlWindow(SharedPtr node, uint32_t poly) property_resizable() = true; set_border_width(5); - set_title(_node->path().str() + " Controls"); + set_title(_node->path().chop_scheme() + " Controls - Ingen"); Glib::RefPtr xml = GladeFactory::new_glade_reference("warehouse_win"); xml->get_widget_derived("control_panel_vbox", _control_panel); @@ -73,7 +73,7 @@ NodeControlWindow::NodeControlWindow(SharedPtr node, ControlPanel* pa property_resizable() = true; set_border_width(5); - set_title(_node->path().str() + " Controls"); + set_title(_node->path().chop_scheme() + " Controls - Ingen"); _control_panel->reparent(*this); diff --git a/src/gui/NodeModule.cpp b/src/gui/NodeModule.cpp index d360784a..fbc89fc3 100644 --- a/src/gui/NodeModule.cpp +++ b/src/gui/NodeModule.cpp @@ -300,6 +300,7 @@ NodeModule::popup_gui() _gui_widget = Glib::wrap(c_widget); _gui_window = new Gtk::Window(); + _gui_window->set_title(_node->path().chop_scheme() + " UI - Ingen"); _gui_window->set_role("plugin_ui"); _gui_window->add(*_gui_widget); _gui_widget->show_all(); diff --git a/src/gui/NodePropertiesWindow.cpp b/src/gui/NodePropertiesWindow.cpp index be2bd3d5..0ce607fb 100644 --- a/src/gui/NodePropertiesWindow.cpp +++ b/src/gui/NodePropertiesWindow.cpp @@ -49,7 +49,7 @@ NodePropertiesWindow::set_node(SharedPtr node_model) _node_model = node_model; - set_title(node_model->path().str() + " Properties"); + set_title(node_model->path().str() + " Properties - Ingen"); _node_path_label->set_text(node_model->path().str()); _node_polyphonic_toggle->set_active(node_model->polyphonic()); diff --git a/src/gui/PatchWindow.cpp b/src/gui/PatchWindow.cpp index af651e34..31aa11bf 100644 --- a/src/gui/PatchWindow.cpp +++ b/src/gui/PatchWindow.cpp @@ -253,7 +253,7 @@ PatchWindow::set_patch(SharedPtr patch, SharedPtr view) ((int)_view->canvas()->width() - width)/2, ((int)_view->canvas()->height() - height)/2); - set_title(_patch->path().str() + " - Ingen"); + set_title(_patch->path().chop_scheme() + " - Ingen"); new_port_connection = patch->signal_new_port.connect( sigc::mem_fun(this, &PatchWindow::patch_port_added)); diff --git a/src/gui/PortPropertiesWindow.cpp b/src/gui/PortPropertiesWindow.cpp index 3efe02bd..79db728e 100644 --- a/src/gui/PortPropertiesWindow.cpp +++ b/src/gui/PortPropertiesWindow.cpp @@ -64,7 +64,7 @@ PortPropertiesWindow::present(SharedPtr pm) _port_model = pm; - set_title(pm->path().str() + " Properties"); + set_title(pm->path().chop_scheme() + " Properties - Ingen"); float min = 0.0f, max = 1.0f; boost::shared_ptr parent = PtrCast(_port_model->parent()); -- cgit v1.2.1