diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-12-01 09:22:44 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-12-01 09:23:08 -0500 |
commit | 3b4df61d83909fd8015407efe791a80d0893f3b7 (patch) | |
tree | 9362c063439ee60b01234cd2623961e5d1ce42b6 /gtk2_ardour/rc_option_editor.cc | |
parent | f178c4f4eedb85631887dd1f10b9e3586e91b26a (diff) |
set control surface window name to (usefully) show control protocol name
Diffstat (limited to 'gtk2_ardour/rc_option_editor.cc')
-rw-r--r-- | gtk2_ardour/rc_option_editor.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gtk2_ardour/rc_option_editor.cc b/gtk2_ardour/rc_option_editor.cc index dac04ce836..1a393449d4 100644 --- a/gtk2_ardour/rc_option_editor.cc +++ b/gtk2_ardour/rc_option_editor.cc @@ -37,6 +37,7 @@ #include <gtkmm2ext/slider_controller.h> #include <gtkmm2ext/gtk_ui.h> #include <gtkmm2ext/paths_dialog.h> +#include <gtkmm2ext/window_title.h> #include "pbd/fpu.h" #include "pbd/cpus.h" @@ -1408,14 +1409,15 @@ private: static_cast<ArdourWindow*>(box->get_parent())->present(); return; } - string title = row[_model.name]; + WindowTitle title (Glib::get_application_name()); + title += row[_model.name]; + title += _(": Configuration"); /* once created, the window is managed by the surface itself (as ->get_parent()) * Surface's tear_down_gui() is called on session close, when de-activating * or re-initializing a surface. * tear_down_gui() hides an deletes the Window if it exists. */ - ArdourWindow* win = new ArdourWindow (_parent, title); - win->set_title ("Control Protocol Options"); + ArdourWindow* win = new ArdourWindow (_parent, title.get_string()); win->add (*box); box->show (); win->present (); |