[gnome-devel-docs] tutorials C: prerelease 3.5.3 fixes



commit 4264a2ca923536079a23f0c6b4854c157a48d07a
Author: Monica Kochofar <monicakochofar gmail com>
Date:   Fri Jun 22 21:05:08 2012 -0400

    tutorials C: prerelease 3.5.3 fixes

 platform-demos/C/button.c.page          |    6 ++++--
 platform-demos/C/image.c.page           |    2 +-
 platform-demos/C/label.c.page           |    3 ++-
 platform-demos/C/linkbutton.c.page      |    2 +-
 platform-demos/C/radiobutton.c.page     |    8 +++++---
 platform-demos/C/samples/button.c       |   18 ++++++++++++------
 platform-demos/C/samples/entry.c        |   15 +++++++++++----
 platform-demos/C/samples/grid.c         |   16 +++++++++++-----
 platform-demos/C/samples/image.c        |    9 ++++++---
 platform-demos/C/samples/label.c        |   14 +++++++++++---
 platform-demos/C/samples/radiobutton.c  |   25 +++++++++++++++++--------
 platform-demos/C/samples/spinner.c      |   16 +++++++++++-----
 platform-demos/C/samples/switch.c       |   15 ++++++++-------
 platform-demos/C/samples/togglebutton.c |   13 +++++++++----
 platform-demos/C/switch.c.page          |    2 +-
 platform-demos/C/togglebutton.c.page    |    2 +-
 16 files changed, 111 insertions(+), 55 deletions(-)
---
diff --git a/platform-demos/C/button.c.page b/platform-demos/C/button.c.page
index eefc5b7..65e2294 100644
--- a/platform-demos/C/button.c.page
+++ b/platform-demos/C/button.c.page
@@ -5,7 +5,9 @@
       id="button.c">
   <info>
     <link type="guide" xref="beginner.c#buttons"/>
-    <revision version="0.1" date="2012-05-30" status="draft"/>
+    <link type="seealso" xref="dialog.c"/>
+    <link type="seealso" xref="grid.c"/>
+    <revision version="0.2" date="2012-06-22" status="draft"/>
 
     <credit type="author copyright">
       <name>Monica Kochofar</name>
@@ -19,7 +21,7 @@
   <title>Button Widget</title>
 
   <media type="image" mime="image/png" src="media/button.png"/>
-  <p>A button widget connected to a callback function</p>
+  <p>A button widget connected to a callback function that reverses its label when clicked.</p>
 
       <code mime="text/x-csrc" style="numbered">
 <xi:include href="samples/button.c" parse="text"><xi:fallback/></xi:include></code>
diff --git a/platform-demos/C/image.c.page b/platform-demos/C/image.c.page
index a454bfd..3e77d04 100644
--- a/platform-demos/C/image.c.page
+++ b/platform-demos/C/image.c.page
@@ -13,7 +13,7 @@
       <years>2012</years>
     </credit>
 
-    <desc>A widget displaying an image.</desc>
+    <desc>A widget displaying an image</desc>
   </info>
 
   <title>Image</title>
diff --git a/platform-demos/C/label.c.page b/platform-demos/C/label.c.page
index 3783a1c..180d3ea 100644
--- a/platform-demos/C/label.c.page
+++ b/platform-demos/C/label.c.page
@@ -5,7 +5,8 @@
       id="label.c">
   <info>
     <link type="guide" xref="beginner.c#display-widgets"/>
-    <revision version="0.1" date="2012-05-23" status="draft"/>
+    <link type="seealso" xref="switch.c"/>
+    <revision version="0.2" date="2012-06-22" status="draft"/>
 
     <credit type="author copyright">
       <name>Monica Kochofar</name>
diff --git a/platform-demos/C/linkbutton.c.page b/platform-demos/C/linkbutton.c.page
index 3e06984..1a1abec 100644
--- a/platform-demos/C/linkbutton.c.page
+++ b/platform-demos/C/linkbutton.c.page
@@ -29,6 +29,6 @@
 <list>
   <item><p><link href="http://developer.gnome.org/gtk3/3.4/GtkApplication.html";>GtkApplication</link></p></item>
   <item><p><link href="http://developer.gnome.org/gtk3/3.4/GtkWindow.html";>GtkWindow</link></p></item>
-  <item><p><link href="http://developer.gnome.org/gtk/stable/GtkLinkButton.html#gtk-link-button-new";>GtkLinkButton</link></p></item>
+  <item><p><link href="http://developer.gnome.org/gtk3/stable/GtkLinkButton.html";>GtkLinkButton</link></p></item>
 </list>
 </page>
diff --git a/platform-demos/C/radiobutton.c.page b/platform-demos/C/radiobutton.c.page
index defce14..6757c48 100644
--- a/platform-demos/C/radiobutton.c.page
+++ b/platform-demos/C/radiobutton.c.page
@@ -5,7 +5,9 @@
       id="radiobutton.c">
   <info>
     <link type="guide" xref="beginner.c#buttons"/>
-    <revision version="0.1" date="2012-06-04" status="draft"/>
+    <link type="seealso" xref="togglebutton.c"/>
+    <link type="seealso" xref="grid.c"/>
+    <revision version="0.2" date="2012-06-22" status="draft"/>
 
     <credit type="author copyright">
       <name>Monica Kochofar</name>
@@ -13,7 +15,7 @@
       <years>2012</years>
     </credit>
 
-    <desc>A choice from multiple checkbuttons.</desc>
+    <desc>A choice from multiple checkbuttons</desc>
   </info>
 
   <title>Radiobutton</title>
@@ -29,7 +31,7 @@
 <list>
   <item><p><link href="http://developer.gnome.org/gtk3/3.4/GtkApplication.html";>GtkApplication</link></p></item>
   <item><p><link href="http://developer.gnome.org/gtk3/3.4/GtkWindow.html";>GtkWindow</link></p></item>
-  <item><p><link href="http://developer.gnome.org/gtk/stable/GtkLabel.html#gtk-label-new";>GtkLabel</link></p></item>
+  <item><p><link href="http://developer.gnome.org/gtk3/stable/GtkLabel.html";>GtkLabel</link></p></item>
   <item><p><link href="http://developer.gnome.org/gtk3/stable/GtkGrid.html";>GtkGrid</link></p></item>
   <item><p><link href="http://developer.gnome.org/gtk3/stable/GtkSwitch.html";>GtkSwitch</link></p></item>
   
diff --git a/platform-demos/C/samples/button.c b/platform-demos/C/samples/button.c
index 17554bc..af0cfbc 100644
--- a/platform-demos/C/samples/button.c
+++ b/platform-demos/C/samples/button.c
@@ -1,8 +1,10 @@
 #include <gtk/gtk.h>
 
-/*This is the callback function. It is a handler function which reacts to the signal. 
-In this case, it will cause the button label's string to reverse.*/
 
+
+/*This is the callback function. It is a handler function which 
+reacts to the signal. In this case, it will cause the button label's 
+string to reverse.*/
 static void
 button_clicked (GtkButton *button,
                 gpointer   user_data)
@@ -17,6 +19,8 @@ button_clicked (GtkButton *button,
   g_free (new_label);
 }
 
+
+
 static void
 activate (GtkApplication *app,
           gpointer        user_data)
@@ -26,16 +30,18 @@ activate (GtkApplication *app,
 
   /*Create a window with a title and a default size*/
   window = gtk_application_window_new (app);
-
   gtk_window_set_title (GTK_WINDOW (window), "GNOME Button");
   gtk_window_set_default_size (GTK_WINDOW (window), 250, 50);
 
-  /*create a button with a label, and add it to the window*/
+  /*Create a button with a label, and add it to the window*/
   button = gtk_button_new_with_label ("Click Me");
   gtk_container_add (GTK_CONTAINER (window), button);
 
-  /*connecting the clicked signal to the callback*/
-  g_signal_connect(G_OBJECT (button), "clicked", G_CALLBACK (button_clicked), G_OBJECT (window));
+  /*Connecting the clicked signal to the callback function*/
+  g_signal_connect (GTK_Button (button), 
+                    "clicked", 
+                    G_CALLBACK (button_clicked), 
+                    G_OBJECT (window));
 
   gtk_widget_show_all (window);
 }
diff --git a/platform-demos/C/samples/entry.c b/platform-demos/C/samples/entry.c
index a400b56..57d0dd5 100644
--- a/platform-demos/C/samples/entry.c
+++ b/platform-demos/C/samples/entry.c
@@ -1,5 +1,7 @@
 #include <gtk/gtk.h>
 
+
+
 /*This is the callback function. It is a handler function 
 which reacts to the signal. In this case, it will grab the 
 text input from the entry box and print out a line to the user.*/
@@ -13,6 +15,8 @@ on_activate (GtkEntry *entry,
   g_print ("\nHello %s!\n\n", name);
 }
 
+
+
 static void
 activate (GtkApplication *app,
           gpointer        user_data)
@@ -25,18 +29,21 @@ activate (GtkApplication *app,
   window = gtk_application_window_new (app);
   gtk_window_set_title (GTK_WINDOW (window), "What is your name?");
   gtk_window_set_default_size (GTK_WINDOW (window), 300, 100);
-  gtk_container_set_border_width(GTK_CONTAINER(window), 10);
+  gtk_container_set_border_width (GTK_CONTAINER (window), 10);
 
-  /*create a new entry box, and add it to the window*/
+  /*Create a new entry box, and add it to the window*/
   entry_box = gtk_entry_new ();
   gtk_container_add (GTK_CONTAINER (window), entry_box);
 
-  /*connecting the clicked signal to the callback*/
-  g_signal_connect(GTK_ENTRY (entry_box), "activate", G_CALLBACK (on_activate), NULL);
+  /*Connecting the activate signal to the callback*/
+  g_signal_connect (GTK_ENTRY (entry_box), "activate", 
+                    G_CALLBACK (on_activate), NULL);
 
   gtk_widget_show_all (window);
 }
 
+
+
 int
 main (int argc, char **argv)
 {
diff --git a/platform-demos/C/samples/grid.c b/platform-demos/C/samples/grid.c
index d5fd822..b67c7b9 100644
--- a/platform-demos/C/samples/grid.c
+++ b/platform-demos/C/samples/grid.c
@@ -1,5 +1,7 @@
 #include <gtk/gtk.h>
 
+
+
 /*Signal handler for the "clicked" signal of the Button. Each
 click generates a progress bar pulse*/
 static void
@@ -11,12 +13,12 @@ on_button_click (GtkButton *button,
 }
 
 
+
 static void
 activate (GtkApplication *app,
           gpointer        user_data)
 {
   GtkWidget *grid;
-
   GtkWidget *window;
   GtkWidget *button;
   GtkWidget *progress_bar;
@@ -29,16 +31,20 @@ activate (GtkApplication *app,
   button = gtk_button_new_with_label ("Button");
 
   /*Create the progress bar*/
-  progress_bar = gtk_progress_bar_new();
+  progress_bar = gtk_progress_bar_new ();
 
   /*Create a grid and attach the button and progress bar
   accordingly*/
-  grid = gtk_grid_new();
+  grid = gtk_grid_new ();
   gtk_grid_attach (GTK_GRID (grid), button, 1, 1, 1, 1);
-  gtk_grid_attach_next_to (GTK_GRID (grid), progress_bar, button, GTK_POS_BOTTOM, 1, 1);
+  gtk_grid_attach_next_to (GTK_GRID (grid), 
+                           progress_bar, 
+                           button, 
+                           GTK_POS_BOTTOM, 1, 1);
 
   /*Connecting the clicked signal to the callback function*/
-  g_signal_connect (GTK_BUTTON (button), "clicked", G_CALLBACK (on_button_click), progress_bar);
+  g_signal_connect (GTK_BUTTON (button), "clicked", 
+                    G_CALLBACK (on_button_click), progress_bar);
 
   gtk_container_add (GTK_CONTAINER (window), GTK_WIDGET (grid));
 
diff --git a/platform-demos/C/samples/image.c b/platform-demos/C/samples/image.c
index e3facb6..a00fb1e 100644
--- a/platform-demos/C/samples/image.c
+++ b/platform-demos/C/samples/image.c
@@ -1,5 +1,7 @@
 #include <gtk/gtk.h>
 
+
+
 static void
 activate (GtkApplication *app,
           gpointer        user_data)
@@ -7,11 +9,10 @@ activate (GtkApplication *app,
   GtkWidget *window;
   GtkWidget *image;
 
+  /*Create a window with a title and a default size*/
   window = gtk_application_window_new (app);
-
-  gtk_window_set_application (GTK_WINDOW (window), GTK_APPLICATION (app));
   gtk_window_set_title (GTK_WINDOW (window), "Welcome to GNOME");
-  gtk_window_set_default_size (GTK_WINDOW (window), 300, 300);//may have to change size
+  gtk_window_set_default_size (GTK_WINDOW (window), 300, 300);
 
   image = gtk_image_new_from_file ("gnome-image.png");
 
@@ -20,6 +21,8 @@ activate (GtkApplication *app,
   gtk_widget_show_all (GTK_WIDGET (window));
 }
 
+
+
 int
 main (int argc, char **argv)
 {
diff --git a/platform-demos/C/samples/label.c b/platform-demos/C/samples/label.c
index 2e63a4a..d54e2e2 100644
--- a/platform-demos/C/samples/label.c
+++ b/platform-demos/C/samples/label.c
@@ -1,5 +1,7 @@
 #include <gtk/gtk.h>
 
+
+
 static void
 activate (GtkApplication *app,
           gpointer        user_data)
@@ -7,20 +9,26 @@ activate (GtkApplication *app,
   GtkWidget *window;
   GtkWidget *label;
 
+  /*Create a window with a title and a default size*/
   window = gtk_application_window_new (app);
-  label = gtk_label_new ("Hello GNOME!");
-
   gtk_window_set_application (GTK_WINDOW (window), GTK_APPLICATION (app));
   gtk_window_set_title (GTK_WINDOW (window), "Welcome to GNOME");
   gtk_window_set_default_size (GTK_WINDOW (window), 200,100);
-
+   
+  /*Create a label and set its alignment. Setting the line wrap to TRUE makes 
+  the label break lines if the text exceeds the widget's size. When set to 
+  FALSE the text gets cut off by the edge of the widget*/
+  label = gtk_label_new ("Hello GNOME!");
   gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_CENTER);
   gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
+
   gtk_container_add (GTK_CONTAINER (window), GTK_WIDGET (label));
 
   gtk_widget_show_all (GTK_WIDGET (window));
 }
 
+
+
 int
 main (int argc, char **argv)
 {
diff --git a/platform-demos/C/samples/radiobutton.c b/platform-demos/C/samples/radiobutton.c
index 68e1ee3..46e3a48 100644
--- a/platform-demos/C/samples/radiobutton.c
+++ b/platform-demos/C/samples/radiobutton.c
@@ -1,5 +1,7 @@
 #include <gtk/gtk.h>
 
+
+
 /*Signal handler for the "toggled" signal of the RadioButton*/
 static void
 button_toggled_cb (GtkWidget *button,
@@ -8,7 +10,7 @@ button_toggled_cb (GtkWidget *button,
   char *b_state;
   const char *button_label;
 
-  if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(button)))
+  if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button)))
           b_state = "on";
   else {
           b_state = "off";
@@ -21,6 +23,7 @@ button_toggled_cb (GtkWidget *button,
 }
 
 
+
 static void
 activate (GtkApplication *app,
           gpointer        user_data)
@@ -38,21 +41,23 @@ activate (GtkApplication *app,
   window = gtk_application_window_new (app);
   gtk_window_set_title (GTK_WINDOW (window), "RadioButton Example");
   gtk_window_set_default_size (GTK_WINDOW (window), 250, 100);
-  gtk_container_set_border_width(GTK_CONTAINER(window), 20);
+  gtk_container_set_border_width (GTK_CONTAINER(window), 20);
 
 
   /*Create an initial radio button*/
   button1 = gtk_radio_button_new_with_label (NULL, "Button 1");
 
   /*Create a second radio button, and add it to the same group as Button 1*/
-  button2 = gtk_radio_button_new_with_label_from_widget (GTK_RADIO_BUTTON (button1), "Button 2");
+  button2 = gtk_radio_button_new_with_label_from_widget (GTK_RADIO_BUTTON (button1), 
+                                                         "Button 2");
 
   /*Create a third button, and add it to the same group as Button 1*/
-  button3 = gtk_radio_button_new_with_label_from_widget (GTK_RADIO_BUTTON (button1), "Button 3");
+  button3 = gtk_radio_button_new_with_label_from_widget (GTK_RADIO_BUTTON (button1), 
+                                                         "Button 3");
 
 
   /*Create a grid, attach the buttons, and position them accordingly*/
-  grid = gtk_grid_new();
+  grid = gtk_grid_new ();
   gtk_grid_attach (GTK_GRID (grid), button1, 0, 0, 1, 1);
   gtk_grid_attach (GTK_GRID (grid), button2, 0, 1, 1, 1);
   gtk_grid_attach (GTK_GRID (grid), button3, 0, 2, 1, 1);
@@ -63,9 +68,12 @@ activate (GtkApplication *app,
   gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button3), FALSE);
 
   /*Connect the signal handlers (aka Callback functions) to the buttons*/
-  g_signal_connect (GTK_TOGGLE_BUTTON (button1), "toggled", G_CALLBACK (button_toggled_cb), window);
-  g_signal_connect (GTK_TOGGLE_BUTTON (button2), "toggled", G_CALLBACK (button_toggled_cb), window);
-  g_signal_connect (GTK_TOGGLE_BUTTON (button3), "toggled", G_CALLBACK (button_toggled_cb), window);
+  g_signal_connect (GTK_TOGGLE_BUTTON (button1), "toggled", 
+                    G_CALLBACK (button_toggled_cb), window);
+  g_signal_connect (GTK_TOGGLE_BUTTON (button2), "toggled", 
+                    G_CALLBACK (button_toggled_cb), window);
+  g_signal_connect (GTK_TOGGLE_BUTTON (button3), "toggled", 
+                    G_CALLBACK (button_toggled_cb), window);
 
   gtk_container_add (GTK_CONTAINER (window), GTK_WIDGET (grid));
 
@@ -73,6 +81,7 @@ activate (GtkApplication *app,
 }
 
 
+
 int
 main (int argc, char **argv)
 {
diff --git a/platform-demos/C/samples/spinner.c b/platform-demos/C/samples/spinner.c
index 61b9c20..197c87d 100644
--- a/platform-demos/C/samples/spinner.c
+++ b/platform-demos/C/samples/spinner.c
@@ -1,11 +1,14 @@
 #include <gtk/gtk.h>
  
+
+
  /*Global variable used to indicate active state of the
 spinner. TRUE = active, FALSE = not-active. This is because 
 there isn't a current function for C that does this for us*/
 gboolean active;  
  
 
+
 /*This is the callback function. It is a handler function 
 which reacts to the signal. In this case, it will cause the 
 spinner to start and stop according to how many times the user 
@@ -39,6 +42,7 @@ return TRUE;
 }
  
 
+
 static void
 activate (GtkApplication *app,
           gpointer        user_data)
@@ -51,22 +55,24 @@ activate (GtkApplication *app,
  
   gtk_window_set_title (GTK_WINDOW (window), "Spinner Example");
   gtk_window_set_default_size (GTK_WINDOW (window), 200, 200);
-  gtk_container_set_border_width(GTK_CONTAINER(window), 30);
+  gtk_container_set_border_width (GTK_CONTAINER(window), 30);
  
   /*Create a spinner, with extra horizontal and vertical space*/
   spinner = gtk_spinner_new ();
   gtk_spinner_start (GTK_SPINNER (spinner));
-  //gtk_widget_set_hexpand (spinner, TRUE);
-  //gtk_widget_set_vexpand (spinner, TRUE);
   
   gtk_container_add (GTK_CONTAINER (window), spinner);
  
-  /*connecting the clicked signal to the callback*/
-  g_signal_connect (GTK_WINDOW (window), "key-press-event", G_CALLBACK (key_pressed_event), spinner);
+  /*Connecting the key-press-event signal to the callback*/
+  g_signal_connect (GTK_WINDOW (window), "key-press-event", 
+                    G_CALLBACK (key_pressed_event), spinner);
  
   gtk_widget_show_all (window);
 }
  
+
+
+
 int
 main (int argc, char **argv)
 {
diff --git a/platform-demos/C/samples/switch.c b/platform-demos/C/samples/switch.c
index 14bd434..5de330b 100644
--- a/platform-demos/C/samples/switch.c
+++ b/platform-demos/C/samples/switch.c
@@ -1,5 +1,7 @@
 #include <gtk/gtk.h>
 
+
+
 /*Signal handler for the "active" signal of the Switch*/
 static void
 activate_cb (GObject    *switcher,
@@ -15,12 +17,12 @@ activate_cb (GObject    *switcher,
 }
 
 
+
 static void
 activate (GtkApplication *app,
           gpointer        user_data)
 {
   GtkWidget *grid;
-
   GtkWidget *window;
   GtkWidget *label;
   GtkWidget *switcher;
@@ -31,8 +33,7 @@ activate (GtkApplication *app,
   window = gtk_application_window_new (app);
   gtk_window_set_title (GTK_WINDOW (window), "Switch Example");
   gtk_window_set_default_size (GTK_WINDOW (window), 300, 100);
-  gtk_container_set_border_width(GTK_CONTAINER(window), 10);
-
+  gtk_container_set_border_width (GTK_CONTAINER (window), 10);
 
   /*Create a label*/
   label = gtk_label_new ("Title");
@@ -41,7 +42,6 @@ activate (GtkApplication *app,
   switcher = gtk_switch_new ();
   gtk_switch_set_active (GTK_SWITCH (switcher), TRUE);
 
-
   /*Create a grid and set the column spacing, attach the label and
   switch onto the grid and position them accordingly*/
   grid = gtk_grid_new();
@@ -50,9 +50,10 @@ activate (GtkApplication *app,
   gtk_grid_attach (GTK_GRID (grid), switcher, 1, 0, 1, 1);
 
   /*Connecting the clicked signal to the callback function*/
-  g_signal_connect (GTK_SWITCH (switcher), "notify::active", G_CALLBACK (activate_cb), window);
-
-
+  g_signal_connect (GTK_SWITCH (switcher), 
+                    "notify::active", 
+                    G_CALLBACK (activate_cb), 
+                    window);
 
   gtk_container_add (GTK_CONTAINER (window), GTK_WIDGET (grid));
 
diff --git a/platform-demos/C/samples/togglebutton.c b/platform-demos/C/samples/togglebutton.c
index 8ef7dcf..027ebb3 100644
--- a/platform-demos/C/samples/togglebutton.c
+++ b/platform-demos/C/samples/togglebutton.c
@@ -1,5 +1,7 @@
 #include <gtk/gtk.h>
 
+
+
 /*This is the callback function. It is a handler function 
 which reacts to the signal. In this case, it will cause the 
 spinner to start and stop according to how many times the user 
@@ -17,6 +19,8 @@ button_toggled_cb (GtkWidget *button,
   }
 }
 
+
+
 static void
 activate (GtkApplication *app,
           gpointer        user_data)
@@ -28,7 +32,6 @@ activate (GtkApplication *app,
 
   /*Create a window with a title, border width and a default size*/
   window = gtk_application_window_new (app);
-
   gtk_window_set_title (GTK_WINDOW (window), "ToggleButton Example");
   gtk_window_set_default_size (GTK_WINDOW (window), 300, 300);
   gtk_container_set_border_width(GTK_CONTAINER(window), 30);
@@ -46,18 +49,20 @@ activate (GtkApplication *app,
   grid = gtk_grid_new();
   gtk_grid_set_row_homogeneous (GTK_GRID (grid), FALSE);
   gtk_grid_set_row_spacing (GTK_GRID (grid), 15);
-  
   gtk_grid_attach (GTK_GRID (grid), spinner, 0, 0, 1, 1);
   gtk_grid_attach (GTK_GRID (grid), button, 0, 1, 1, 1);
   
   gtk_container_add (GTK_CONTAINER (window), grid);
 
-  /*connecting the clicked signal to the callback*/
-  g_signal_connect (GTK_TOGGLE_BUTTON (button), "toggled", G_CALLBACK (button_toggled_cb), spinner);
+  /*Connecting the toggled signal to the callback*/
+  g_signal_connect (GTK_TOGGLE_BUTTON (button), "toggled", 
+                    G_CALLBACK (button_toggled_cb), spinner);
 
   gtk_widget_show_all (window);
 }
 
+
+
 int
 main (int argc, char **argv)
 {
diff --git a/platform-demos/C/switch.c.page b/platform-demos/C/switch.c.page
index 3e7e82b..4edbd2c 100644
--- a/platform-demos/C/switch.c.page
+++ b/platform-demos/C/switch.c.page
@@ -30,7 +30,7 @@
 <list>
   <item><p><link href="http://developer.gnome.org/gtk3/3.4/GtkApplication.html";>GtkApplication</link></p></item>
   <item><p><link href="http://developer.gnome.org/gtk3/3.4/GtkWindow.html";>GtkWindow</link></p></item>
-  <item><p><link href="http://developer.gnome.org/gtk/stable/GtkLabel.html#gtk-label-new";>GtkLabel</link></p></item>
+  <item><p><link href="http://developer.gnome.org/gtk3/stable/GtkLabel.html";>GtkLabel</link></p></item>
   <item><p><link href="http://developer.gnome.org/gtk3/stable/GtkSwitch.html";>GtkSwitch</link></p></item>
   <item><p><link href="http://developer.gnome.org/gtk3/stable/GtkGrid.html";>GtkGrid</link></p></item>
 </list>
diff --git a/platform-demos/C/togglebutton.c.page b/platform-demos/C/togglebutton.c.page
index de39d09..e5b473e 100644
--- a/platform-demos/C/togglebutton.c.page
+++ b/platform-demos/C/togglebutton.c.page
@@ -17,7 +17,7 @@
       <years>2012</years>
     </credit>
 
-    <desc>A button which retains state.</desc>
+    <desc>A button which retains state</desc>
   </info>
 
   <title>Togglebutton</title>



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