[gnome-devel-docs] demos: Random small fixes



commit 231b077230a4a0ca72c0ab10074db7e53bf2e840
Author: Johannes Schmid <jhs gnome org>
Date:   Sat Mar 19 23:48:50 2011 -0400

    demos: Random small fixes

 demos/C/image-viewer.c.page            |    3 +++
 demos/C/image-viewer.js.page           |    4 ----
 demos/C/magic-mirror/magic-mirror.vala |    5 +----
 3 files changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/demos/C/image-viewer.c.page b/demos/C/image-viewer.c.page
index 04f4c87..5e438aa 100644
--- a/demos/C/image-viewer.c.page
+++ b/demos/C/image-viewer.c.page
@@ -28,6 +28,8 @@
   </list>
 </synopsis>
 
+<media type="image" mime="image/png" src="media/image-viewer.png"/>
+
 <section>
   <title>Create a project in Anjuta</title>
   <p>Before you start coding, you'll need to set up a new project in Anjuta. This will create all of the files you need to build and run the code later on. It's also useful for keeping everything together.</p>
@@ -138,6 +140,7 @@ create_window (void)
     <item>
     <p>As a last step, make sure to replace the <code>gtk_widget_show</code> call in the <code>main()</code> function by
     <code>gtk_widget_show_all()</code> to show the window and all the widgets it contains.</p>
+    </item>
   </steps>
 </section>
 
diff --git a/demos/C/image-viewer.js.page b/demos/C/image-viewer.js.page
index 696a39b..9119237 100644
--- a/demos/C/image-viewer.js.page
+++ b/demos/C/image-viewer.js.page
@@ -22,8 +22,6 @@
 
 <title>Image Viewer</title>
 
-<!-- FIXME: image-viewer.js is different to the version described here! It has a ScrolledWindow -->
-
 <synopsis>
   <p>In this tutorial, we're going to write a very simple GTK application that loads and displays an image file. You will learn how to:</p>
   <list>
@@ -40,8 +38,6 @@
   </list>
 </synopsis>
 
-<!--   <screen>gjs iv.js</screen> -->
-
 <media type="image" mime="image/png" src="media/image-viewer.png"/>
 
 <section>
diff --git a/demos/C/magic-mirror/magic-mirror.vala b/demos/C/magic-mirror/magic-mirror.vala
index 8a4d8dc..74d43f9 100644
--- a/demos/C/magic-mirror/magic-mirror.vala
+++ b/demos/C/magic-mirror/magic-mirror.vala
@@ -7,10 +7,7 @@ public class Main : Object
 	private Gtk.DrawingArea drawing_area;
 	private Gst.Element camerabin;
 	
-	public Main () {
-		this.drawing_area = new Gtk.DrawingArea ();
-		this.drawing_area.set_size_request (640, 480);
-		
+	public Main () {		
 		this.camerabin = Gst.ElementFactory.make ("camerabin", "camera");
 		this.camerabin.set_state (Gst.State.PLAYING);
 	}



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