[gtkmm-documentation] Fix the book/application/app_menu example.
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm-documentation] Fix the book/application/app_menu example.
- Date: Tue, 11 Sep 2012 07:06:24 +0000 (UTC)
commit d3871ad92d29c8ef8b3bf11f2a31876bf4e898f3
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date: Tue Sep 11 09:02:25 2012 +0200
Fix the book/application/app_menu example.
* examples/book/application/app_menu/exampleapplication.cc: Change the name
of the Gio::SimpleAction from "app.something" to "something".
Bug #683645 (Tom Jaeger)
ChangeLog | 8 ++++++++
.../application/app_menu/exampleapplication.cc | 3 ++-
2 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index b2f482c..70b1680 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2012-09-11 Kjell Ahlstedt <kjell ahlstedt bredband net>
+
+ Fix the book/application/app_menu example.
+
+ * examples/book/application/app_menu/exampleapplication.cc: Change the name
+ of the Gio::SimpleAction from "app.something" to "something".
+ Bug #683645 (Tom Jaeger)
+
2012-08-29 Kjell Ahlstedt <kjell ahlstedt bredband net>
Clipboard and Socket examples: Make them non-unique.
diff --git a/examples/book/application/app_menu/exampleapplication.cc b/examples/book/application/app_menu/exampleapplication.cc
index 5c0b840..fcfe557 100644
--- a/examples/book/application/app_menu/exampleapplication.cc
+++ b/examples/book/application/app_menu/exampleapplication.cc
@@ -34,7 +34,7 @@ void ExampleApplication::on_startup()
//Call the base class's implementation:
Gtk::Application::on_startup();
- m_action = Gio::SimpleAction::create("app.something");
+ m_action = Gio::SimpleAction::create("something");
m_action->signal_activate().connect(
sigc::mem_fun(*this, &ExampleApplication::on_action_something) );
add_action(m_action);
@@ -48,6 +48,7 @@ void ExampleApplication::on_startup()
void ExampleApplication::create_window()
{
ExampleWindow* window = new ExampleWindow();
+ window->set_default_size(300, 100);
//Make sure that the application runs for as long this window is still open:
add_window(*window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]