From ee541036b40327854b445c631c318d79d5c93b07 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 29 Dec 2015 11:03:09 +0100 Subject: [PATCH] fix window-title (separate application name, thread name) --- libs/gtkmm2ext/gtk_ui.cc | 6 +++--- libs/gtkmm2ext/gtkmm2ext/gtk_ui.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/gtkmm2ext/gtk_ui.cc b/libs/gtkmm2ext/gtk_ui.cc index 538bf8d63f..b550b6cf8c 100644 --- a/libs/gtkmm2ext/gtk_ui.cc +++ b/libs/gtkmm2ext/gtk_ui.cc @@ -67,8 +67,8 @@ BaseUI::RequestType Gtkmm2ext::AddTimeout = BaseUI::new_request_type(); template class AbstractUI; -UI::UI (string namestr, int *argc, char ***argv) - : AbstractUI (namestr) +UI::UI (string application_name, string thread_name, int *argc, char ***argv) + : AbstractUI (thread_name) , _receiver (*this) , errors (0) @@ -111,7 +111,7 @@ UI::UI (string namestr, int *argc, char ***argv) errors->text().set_name ("ErrorText"); errors->signal_unmap().connect (sigc::bind (sigc::ptr_fun (&ActionManager::uncheck_toggleaction), X_("/Editor/toggle-log-window"))); - Glib::set_application_name(namestr); + Glib::set_application_name (application_name); WindowTitle title(Glib::get_application_name()); title += _("Log"); diff --git a/libs/gtkmm2ext/gtkmm2ext/gtk_ui.h b/libs/gtkmm2ext/gtkmm2ext/gtk_ui.h index 868f71fd8d..acddbe7c11 100644 --- a/libs/gtkmm2ext/gtkmm2ext/gtk_ui.h +++ b/libs/gtkmm2ext/gtkmm2ext/gtk_ui.h @@ -113,7 +113,7 @@ class LIBGTKMM2EXT_API UI : public AbstractUI MyReceiver _receiver; public: - UI (std::string name, int *argc, char **argv[]); + UI (std::string, std::string, int *argc, char **argv[]); virtual ~UI (); static UI *instance() { return theGtkUI; }