seed r495 - in trunk: examples extensions



Author: racarr
Date: Sat Dec 20 02:56:54 2008
New Revision: 495
URL: http://svn.gnome.org/viewvc/seed?rev=495&view=rev

Log:
First round of example fixes.

Modified:
   trunk/examples/Gnio-server.js
   trunk/examples/clutter.js
   trunk/examples/json-packing.js
   trunk/examples/n-oscillator.js
   trunk/examples/poppler.js
   trunk/examples/video.js
   trunk/examples/vte-test.js
   trunk/extensions/Gtk.js

Modified: trunk/examples/Gnio-server.js
==============================================================================
--- trunk/examples/Gnio-server.js	(original)
+++ trunk/examples/Gnio-server.js	Sat Dec 20 02:56:54 2008
@@ -4,8 +4,8 @@
 
 // I don't think this is the right way of doing things.
 var r = new Gnio.Resolver();
-var sock = new Gnio.Socket({domain: Gnio.SocketDomain.inet,
-						    type: Gnio.SocketType.stream});
+var sock = new Gnio.Socket({domain: Gnio.SocketDomain.Inet,
+						    type: Gnio.SocketType.Stream});
 
 
 var addr = r.lookup_name("localhost");

Modified: trunk/examples/clutter.js
==============================================================================
--- trunk/examples/clutter.js	(original)
+++ trunk/examples/clutter.js	Sat Dec 20 02:56:54 2008
@@ -47,7 +47,7 @@
 }
 
 var stage = new Clutter.Stage();
-stage.signal.hide.connect(Clutter.main_quit);
+stage.signal.hide.connect(function(){Clutter.main_quit()});
 var timeline = new Clutter.Timeline({fps:60, num_frames:300});
 stage.show_all();
 

Modified: trunk/examples/json-packing.js
==============================================================================
--- trunk/examples/json-packing.js	(original)
+++ trunk/examples/json-packing.js	Sat Dec 20 02:56:54 2008
@@ -10,7 +10,7 @@
 	{child: label,
 	 fill: false,
 	 padding: 10,
-	 position: Gtk.PackType.end},
+	 position: Gtk.PackType.End},
 	{child:button,
 	 fill: false,
 	 padding: 100,

Modified: trunk/examples/n-oscillator.js
==============================================================================
--- trunk/examples/n-oscillator.js	(original)
+++ trunk/examples/n-oscillator.js	Sat Dec 20 02:56:54 2008
@@ -49,12 +49,12 @@
 	{
 		if (playing == false)
 		{
-			pipeline.set_state(Gst.State.playing);
+			pipeline.set_state(Gst.State.Playing);
 			playing = true;
 		}
 		else
 		{
-			pipeline.set_state(Gst.State.paused);
+			pipeline.set_state(Gst.State.Paused);
 			playing = false;
 		}
 	}

Modified: trunk/examples/poppler.js
==============================================================================
--- trunk/examples/poppler.js	(original)
+++ trunk/examples/poppler.js	Sat Dec 20 02:56:54 2008
@@ -56,11 +56,11 @@
     var file_filter = new Gtk.FileFilter();
     file_filter.add_mime_type("application/x-pdf");
     file_chooser.set_filter(file_filter);
-    file_chooser.add_button("Cancel", Gtk.ResponseType.cancel);
-    file_chooser.add_button("Open", Gtk.ResponseType.accept);
-    file_chooser.set_action(Gtk.FileChooserAction.open);
+    file_chooser.add_button("Cancel", Gtk.ResponseType.Cancel);
+    file_chooser.add_button("Open", Gtk.ResponseType.Accept);
+    file_chooser.set_action(Gtk.FileChooserAction.Ppen);
     
-    if(file_chooser.run() == Gtk.ResponseType.accept)
+    if(file_chooser.run() == Gtk.ResponseType.Accept)
     {
 	    // Poppler.Document will not take a uri as a construction property,
 	    // use this:

Modified: trunk/examples/video.js
==============================================================================
--- trunk/examples/video.js	(original)
+++ trunk/examples/video.js	Sat Dec 20 02:56:54 2008
@@ -16,7 +16,7 @@
 pipeline.add(sink);
 source.link(sink);
 
-pipeline.set_state(Gst.State.playing);
+pipeline.set_state(Gst.State.Playing);
 
 Gtk.main();
 

Modified: trunk/examples/vte-test.js
==============================================================================
--- trunk/examples/vte-test.js	(original)
+++ trunk/examples/vte-test.js	Sat Dec 20 02:56:54 2008
@@ -20,8 +20,8 @@
 
 
 	scroll.add(vte);
-	scroll.set_policy(PolicyType.automatic,
-					  PolicyType.automatic);
+	scroll.set_policy(PolicyType.Automatic,
+					  PolicyType.Automatic);
 
 	window.add(scroll);
 	window.show_all();

Modified: trunk/extensions/Gtk.js
==============================================================================
--- trunk/extensions/Gtk.js	(original)
+++ trunk/extensions/Gtk.js	Sat Dec 20 02:56:54 2008
@@ -12,7 +12,7 @@
 				 var position = entry["position"];
 
 				 if (position == null)
-					 position = Gtk.PackType.start;
+					 position = Gtk.PackType.Start;
 				 
 				 this.pack_start(child);
 				 this.set_child_packing(child, 



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