[gnome-devel-docs] Update GtkApplication example to 3.4



commit fcbcd71a73ace0c131de6e48dc07eb9c58f54a70
Author: Tiffany Antopolski <tiffany antopolski gmail com>
Date:   Fri Apr 27 00:50:13 2012 -0400

    Update GtkApplication example to 3.4
    
    - updated the png images
    - update the Mallard page
    - updated the Makefile.am to include
      new images.
    - commented out line which cause the code
      to not compile due to bug #674090

 platform-demos/C/GtkApplication.vala.page    |   11 ++++++++---
 platform-demos/C/media/GtkApplication.png    |  Bin 13119 -> 0 bytes
 platform-demos/C/media/GtkApplication1.png   |  Bin 0 -> 6918 bytes
 platform-demos/C/media/GtkApplication2.png   |  Bin 0 -> 22136 bytes
 platform-demos/C/samples/GtkApplication.vala |    2 +-
 platform-demos/Makefile.am                   |    3 ++-
 6 files changed, 11 insertions(+), 5 deletions(-)
---
diff --git a/platform-demos/C/GtkApplication.vala.page b/platform-demos/C/GtkApplication.vala.page
index b3f83e2..43c8627 100644
--- a/platform-demos/C/GtkApplication.vala.page
+++ b/platform-demos/C/GtkApplication.vala.page
@@ -23,9 +23,14 @@
   <table>
     <tr>
       <td>
-        <media type="image" mime="image/png" src="media/GtkApplication.png"/>
+        <media type="image" mime="image/png" src="media/GtkApplication2.png"/>
       </td>
-      <td>
+       <td>
+        <media type="image" mime="image/png" src="media/GtkApplication1.png"/>
+      </td>
+     </tr>
+     <tr>
+     <td>
         <note style="important">
           <p><em style="strong">You need to be running Gtk+-3.4 or later for this to work</em></p>
         </note>
@@ -84,7 +89,7 @@ public class Application : Gtk.Application {
 		this.app_menu = menu;
 
 		var quit_action = new SimpleAction ("quit", null);
-		quit_action.activate.connect (this.quit);
+		//quit_action.activate.connect (this.quit);
 		this.add_action (quit_action);
 	}
 
diff --git a/platform-demos/C/media/GtkApplication1.png b/platform-demos/C/media/GtkApplication1.png
new file mode 100644
index 0000000..2b92915
Binary files /dev/null and b/platform-demos/C/media/GtkApplication1.png differ
diff --git a/platform-demos/C/media/GtkApplication2.png b/platform-demos/C/media/GtkApplication2.png
new file mode 100644
index 0000000..7488c7c
Binary files /dev/null and b/platform-demos/C/media/GtkApplication2.png differ
diff --git a/platform-demos/C/samples/GtkApplication.vala b/platform-demos/C/samples/GtkApplication.vala
index d9097f3..207e0c9 100644
--- a/platform-demos/C/samples/GtkApplication.vala
+++ b/platform-demos/C/samples/GtkApplication.vala
@@ -48,7 +48,7 @@ public class Application : Gtk.Application {
 		this.app_menu = menu;
 
 		var quit_action = new SimpleAction ("quit", null);
-		quit_action.activate.connect (this.quit);
+		//quit_action.activate.connect (this.quit);
 		this.add_action (quit_action);
 	}
 
diff --git a/platform-demos/Makefile.am b/platform-demos/Makefile.am
index 5a92ac7..3bea370 100644
--- a/platform-demos/Makefile.am
+++ b/platform-demos/Makefile.am
@@ -31,7 +31,8 @@ DOC_FIGURES = \
 	media/fedora.png			\
 	media/opensuse.png			\
 	media/grid.png				\
-	media/GtkApplication.png		\
+	media/GtkApplication1.png		\
+	media/GtkApplication2.png		\
 	media/guitar-tuner.png			\
 	media/guitar-tuner-glade.png		\
 	media/guitar-tuner-pipeline.png		\



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