[gnome-devel-docs] Made beginner.vala.page sections 2 column.



commit 4d9c1d702438872b3d765a74dfbbe3a4dc7267b7
Author: Tiffany Antopolski <tiffany antopolski gmail com>
Date:   Wed May 9 00:50:10 2012 -0400

    Made beginner.vala.page sections 2 column.
    
    Also, changed spaces to tabs in button and statusbar vala code.

 platform-demos/C/beginner.vala.page     |    6 +++---
 platform-demos/C/samples/button.vala    |    7 +++----
 platform-demos/C/samples/statusbar.vala |    6 +++---
 3 files changed, 9 insertions(+), 10 deletions(-)
---
diff --git a/platform-demos/C/beginner.vala.page b/platform-demos/C/beginner.vala.page
index 9c2e80b..64e3871 100644
--- a/platform-demos/C/beginner.vala.page
+++ b/platform-demos/C/beginner.vala.page
@@ -52,11 +52,11 @@
   </section>
   <section id="display-widgets" style="2column"><title>Display widgets</title>
   </section>
-  <section id="buttons"><title>Buttons and toggles</title>
+  <section id="buttons" style="2column"><title>Buttons and toggles</title>
   </section>
-  <section id="entry"><title>Numeric and text data entry</title>
+  <section id="entry" style="2column"><title>Numeric and text data entry</title>
   </section>
-  <section id="menu-combo-toolbar"><title>Menu, combo box and toolbar widgets</title>
+  <section id="menu-combo-toolbar" style="2column"><title>Menu, combo box and toolbar widgets</title>
   </section>
   <section id="treeview"><title>TreeView widget</title>
   </section>
diff --git a/platform-demos/C/samples/button.vala b/platform-demos/C/samples/button.vala
index 184969e..0a14d2a 100644
--- a/platform-demos/C/samples/button.vala
+++ b/platform-demos/C/samples/button.vala
@@ -8,12 +8,11 @@ public class MyWindow : Gtk.ApplicationWindow {
 
 		var button = new Gtk.Button.with_label ("Click Me");
 		button.clicked.connect (reverse_label);
-                button.show ();
+		button.show ();
 
-                this.window_position = Gtk.WindowPosition.CENTER;
-                this.set_default_size (250,50);
+		this.window_position = Gtk.WindowPosition.CENTER;
+		this.set_default_size (250,50);
 		this.add (button);
-
 	}
 }
 
diff --git a/platform-demos/C/samples/statusbar.vala b/platform-demos/C/samples/statusbar.vala
index 9c3fdaf..6858a81 100644
--- a/platform-demos/C/samples/statusbar.vala
+++ b/platform-demos/C/samples/statusbar.vala
@@ -9,7 +9,7 @@ public class MyWindow : Gtk.ApplicationWindow {
 		statusbar = new Gtk.Statusbar ();
         	context_id = statusbar.get_context_id ("example");
 		
-		statusbar.push (context_id, "Waiting for you do to something...");
+		statusbar.push (context_id, "Waiting for you to do something...");
 
 		//set the default size of the window		
 		this.set_default_size (200, 100);
@@ -37,8 +37,8 @@ public class MyWindow : Gtk.ApplicationWindow {
 		button.clicked.connect(button_clicked_cb);
 	}
 
-	/* Since the key-press-event is a signal emitted the window, we don't need to connect it
-	to a callback function.  We can just override key_press_event. */
+	/* Since the key-press-event is a signal received by the window, we don't need to connect 
+	the window to a callback function.  We can just override key_press_event. */
 	protected override bool key_press_event (Gdk.EventKey event) {		
 		statusbar.push (context_id, Gdk.keyval_name(event.keyval) + " key was pressed.");
 		return true;



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