[gtkmm-documentation] Gtk::Application examples: Use Glib::set_application_name().
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm-documentation] Gtk::Application examples: Use Glib::set_application_name().
- Date: Fri, 23 Mar 2012 19:50:30 +0000 (UTC)
commit 0ff3e42272808bfd2171491f3b224a852414f9fc
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Mar 23 20:49:25 2012 +0100
Gtk::Application examples: Use Glib::set_application_name().
* examples/book/application/app_menu/exampleapplication.cc:
* examples/book/application/command_line_handling/exampleapplication.cc:
* examples/book/application/simple/exampleapplication.cc:
Call Glib::set_application_name() because the GtkApplication example
code calls g_set_application_name().
This will apparently make it appear correctly in the task list,
and will be used in error messages.
ChangeLog | 11 +++++++++++
.../application/app_menu/exampleapplication.cc | 2 ++
.../command_line_handling/exampleapplication.cc | 1 +
.../book/application/simple/exampleapplication.cc | 1 +
4 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index ceec549..7cc610e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2012-03-23 Murray Cumming <murrayc murrayc com>
+
+ Gtk::Application examples: Use Glib::set_application_name().
+
+ * examples/book/application/app_menu/exampleapplication.cc:
+ * examples/book/application/command_line_handling/exampleapplication.cc:
+ * examples/book/application/simple/exampleapplication.cc:
+ Call Glib::set_application_name() because the GtkApplication example
+ code calls g_set_application_name().
+ This will apparently make it appear correctly in the task list,
+ and will be used in error messages.
2012-03-23 Kjell Ahlstedt <kjell ahlstedt bredband net>
Fix 'make check' with --enable-warnings=fatal.
diff --git a/examples/book/application/app_menu/exampleapplication.cc b/examples/book/application/app_menu/exampleapplication.cc
index 851ed2d..da9979f 100644
--- a/examples/book/application/app_menu/exampleapplication.cc
+++ b/examples/book/application/app_menu/exampleapplication.cc
@@ -21,6 +21,8 @@
ExampleApplication::ExampleApplication()
: Gtk::Application("org.gtkmm.examples.application")
{
+ Glib::set_application_name("Gtk::Application Example");
+
m_action = Gio::SimpleAction::create("app.something");
m_action->signal_activate().connect(
sigc::mem_fun(*this, &ExampleApplication::on_action_something) );
diff --git a/examples/book/application/command_line_handling/exampleapplication.cc b/examples/book/application/command_line_handling/exampleapplication.cc
index 331f0f9..b202376 100644
--- a/examples/book/application/command_line_handling/exampleapplication.cc
+++ b/examples/book/application/command_line_handling/exampleapplication.cc
@@ -23,6 +23,7 @@ ExampleApplication::ExampleApplication()
: Gtk::Application("org.gtkmm.examples.application",
Gio::ApplicationFlags(Gio::APPLICATION_HANDLES_OPEN | Gio::APPLICATION_HANDLES_COMMAND_LINE))
{
+ Glib::set_application_name("Gtk::Application Example");
}
Glib::RefPtr<ExampleApplication> ExampleApplication::create()
diff --git a/examples/book/application/simple/exampleapplication.cc b/examples/book/application/simple/exampleapplication.cc
index 7a6b012..453b2e5 100644
--- a/examples/book/application/simple/exampleapplication.cc
+++ b/examples/book/application/simple/exampleapplication.cc
@@ -21,6 +21,7 @@
ExampleApplication::ExampleApplication()
: Gtk::Application("org.gtkmm.examples.application", Gio::APPLICATION_HANDLES_OPEN)
{
+ Glib::set_application_name("Gtk::Application Example");
}
Glib::RefPtr<ExampleApplication> ExampleApplication::create()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]