seed r639 - in trunk: examples extensions



Author: racarr
Date: Sun Jan  4 07:11:35 2009
New Revision: 639
URL: http://svn.gnome.org/viewvc/seed?rev=639&view=rev

Log:
Fix more examples, and the Gio extension.

Modified:
   trunk/examples/Gnio.js
   trunk/examples/clutter-cairo.js
   trunk/examples/clutter.js
   trunk/examples/gtkplug.js
   trunk/examples/soup.js
   trunk/extensions/Gio.js

Modified: trunk/examples/Gnio.js
==============================================================================
--- trunk/examples/Gnio.js	(original)
+++ trunk/examples/Gnio.js	Sun Jan  4 07:11:35 2009
@@ -13,12 +13,12 @@
 message = "GET / HTTP/1.1\r\nHost: www.google.com\r\n\r\n";
 
 os = client.get_output_stream();
-ds = Gio.DataOutputStream._new(os);
+ds = new Gio.DataOutputStream.c_new(os);
 ds.put_string(message);
 
 os.flush();
 
-input = Gio.DataInputStream._new(client.get_input_stream());
+input = new Gio.DataInputStream.c_new(client.get_input_stream());
 
 out = input.read_until("", 0);
-Seed.print(out);
\ No newline at end of file
+Seed.print(out);

Modified: trunk/examples/clutter-cairo.js
==============================================================================
--- trunk/examples/clutter-cairo.js	(original)
+++ trunk/examples/clutter-cairo.js	Sun Jan  4 07:11:35 2009
@@ -5,7 +5,7 @@
 
 Clutter.init(null, null);
 
-c = ClutterCairo.ClutterCairo._new(100, 100);
+c = new ClutterCairo.ClutterCairo.c_new(100, 100);
 cr = c.create();
 
 ctx = new Canvas.CairoCanvas(cr);

Modified: trunk/examples/clutter.js
==============================================================================
--- trunk/examples/clutter.js	(original)
+++ trunk/examples/clutter.js	Sun Jan  4 07:11:35 2009
@@ -95,7 +95,7 @@
 		var text = new Clutter.Label({text:"Congratulations!",
 									  font_name:"Bitstream Vera Sans 40"});
 		var fadeline = new Clutter.Timeline({fps:60, num_frames:200});
-		var effect = Clutter.EffectTemplate._new(timeline, alpha_func);
+		var effect = new Clutter.EffectTemplate.c_new(timeline, alpha_func);
 		
 		text.show();
 		stage.add_actor(text);

Modified: trunk/examples/gtkplug.js
==============================================================================
--- trunk/examples/gtkplug.js	(original)
+++ trunk/examples/gtkplug.js	Sun Jan  4 07:11:35 2009
@@ -16,7 +16,7 @@
 	var id = parseInt(pipe.read(), 10);
 
 	var l = new Gtk.Label({label: "Hello GtkPlug World"});
-	var s = Gtk.Plug._new(id);
+	var s = new Gtk.Plug.c_new(id);
 	
 	s.add(l);
 	s.show_all();

Modified: trunk/examples/soup.js
==============================================================================
--- trunk/examples/soup.js	(original)
+++ trunk/examples/soup.js	Sun Jan  4 07:11:35 2009
@@ -4,7 +4,7 @@
 
 var session = new Soup.SessionSync();
 
-var uri = Soup.URI._new("http://www.google.com";);
+var uri = new Soup.URI.c_new("http://www.google.com";);
 var request = new Soup.Message({method:"GET", uri:uri});
 
 var status = session.send_message(request);

Modified: trunk/extensions/Gio.js
==============================================================================
--- trunk/extensions/Gio.js	(original)
+++ trunk/extensions/Gio.js	Sun Jan  4 07:11:35 2009
@@ -4,7 +4,7 @@
 
     prototype.get_contents = function()
     {
-	    var stream = Gio.DataInputStream._new(this);
+	    var stream = new Gio.DataInputStream.c_new(this);
 	    var line = stream.read_until("", 0);
 	    return line;	
     }
@@ -13,7 +13,7 @@
     {
 	    var file = Gio.file_new_for_path(file);
 	    var fstream = file.replace();
-	    var dstream = Gio.DataOutputStream._new(fstream);
+	    var dstream = new Gio.DataOutputStream.c_new(fstream);
 		    
 	    dstream.put_string(name);
 	    fstream.close();
@@ -24,7 +24,7 @@
 	    var file = Gio.file_new_for_path(name);
 
 	    var fstream = file.read();
-	    var dstream = Gio.DataInputStream._new(fstream);
+	    var dstream = new Gio.DataInputStream.c_new(fstream);
 	    var line = dstream.read_until("", 0);
 
 	    fstream.close();



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