[gtkmm-documentation] Remove use of Gtk::Application because it was removed from gtkmm 3.0.



commit 614be4c647e815b4b0df082ec9fb56a58aa205b5
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Mar 24 11:58:25 2011 +0100

    Remove use of Gtk::Application because it was removed from gtkmm 3.0.
    
    * examples/book/application/: Removed.
    * examples/Makefile.am: Remove mention of these examples.
    * examples/book/base/base.cc: Use Gtk::Main again instead of Gtk::Application.

 ChangeLog                                          |   14 ++-
 examples/Makefile.am                               |    2 -
 .../command_line_handling/exampleapplication.cc    |  143 --------------------
 .../command_line_handling/exampleapplication.h     |   43 ------
 .../command_line_handling/exampleoptiongroup.cc    |   42 ------
 .../command_line_handling/exampleoptiongroup.h     |   33 -----
 .../command_line_handling/examplewindow.cc         |   66 ---------
 .../command_line_handling/examplewindow.h          |   38 -----
 .../book/application/command_line_handling/main.cc |   35 -----
 .../book/application/simple/exampleapplication.cc  |   89 ------------
 .../book/application/simple/exampleapplication.h   |   42 ------
 examples/book/application/simple/examplewindow.cc  |   66 ---------
 examples/book/application/simple/examplewindow.h   |   38 -----
 examples/book/application/simple/main.cc           |   35 -----
 examples/book/base/base.cc                         |    8 +-
 15 files changed, 15 insertions(+), 679 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 2db99c7..693f8eb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,17 +1,25 @@
+2011-03-24  Murray Cumming  <murrayc murrayc com>
+
+	Remove use of Gtk::Application because it was removed from gtkmm 3.0.
+
+	* examples/book/application/: Removed.
+	* examples/Makefile.am: Remove mention of these examples.
+	* examples/book/base/base.cc: Use Gtk::Main again instead of Gtk::Application.
+
 2011-03-19  Murray Cumming  <murrayc murrayc-x61>
 
 	Split the Gtk::Application example into two.
 
 	* examples/book/application/: Split this into:
 	* examples/book/application/simple/ with no command-line handling, and:
-	* examples/book/application/command_line_handling/ because custom 
+	* examples/book/application/command_line_handling/ because custom
 	handling of the command line makes the open signal (and maybe others) useless.
 	As planned on bug #637445.
-	
+
 2011-03-18  Kalev Lember <kalev smartlink ee>
 
     ComboBox: Use set_entry_text_column() instead of set_text_column()
-    
+
     * docs/tutorial/C/gtkmm-tutorial-in.xml:
     * examples/book/combobox/entry_complex/examplewindow.cc: Updated the
     files to use set_entry_text_column() instead of set_text_column() which
diff --git a/examples/Makefile.am b/examples/Makefile.am
index 87ed7cf..02cde7e 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -8,8 +8,6 @@ LDADD       = $(GTKMM_LIBS)
 
 check_PROGRAMS =					\
 	book/alignment/example				\
-	book/application/simple/example \
-	book/application/command_line_handling/example \
 	book/aspectframe/example			\
 	book/assistant/example				\
 	book/base/base					\
diff --git a/examples/book/base/base.cc b/examples/book/base/base.cc
index 676bde2..36a6673 100644
--- a/examples/book/base/base.cc
+++ b/examples/book/base/base.cc
@@ -2,11 +2,11 @@
 
 int main(int argc, char *argv[])
 {
-  Glib::RefPtr<Gtk::Application> app =
-    Gtk::Application::create(argc, argv,
-      "org.gtkmm.examples.base");
+  Gtk::Main kit(argc, argv);
 
   Gtk::Window window;
 
-  return app->run(window);
+  Gtk::Main::run(window);
+
+  return EXIT_SUCCESS;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]