[seed] Update init method calls in examples



commit f0b3c86a4293162e33c3e645828acd88cb31254a
Author: Robert Carr <racarr svn gnome org>
Date:   Mon May 11 20:13:33 2009 -0400

    Update init method calls in examples
---
 examples/accelgroup.js               |    2 +-
 examples/actions.js                  |    2 +-
 examples/browser/main.js             |    2 +-
 examples/calculator.js               |    2 +-
 examples/clutter-0.8.js              |    2 +-
 examples/clutter-cairo.js            |    2 +-
 examples/clutter-pad.js              |    4 ++--
 examples/clutter-shader/main.js      |    4 ++--
 examples/clutter-transitions/main.js |    2 +-
 examples/gconf.js                    |    2 +-
 examples/gtkplug.js                  |    4 ++--
 examples/gtktreeview.js              |    2 +-
 examples/json-packing.js             |    2 +-
 examples/n-oscillator.js             |    4 ++--
 examples/notify-test.js              |    2 +-
 examples/pango.js                    |    4 ++--
 examples/pong/pong.js                |    2 +-
 examples/poppler.js                  |    2 +-
 examples/same-seed/main.js           |    6 +++---
 examples/threaded-repl.js            |    2 +-
 examples/twitter/twitter.js          |    2 +-
 examples/video.js                    |    4 ++--
 examples/vte-test.js                 |    2 +-
 23 files changed, 31 insertions(+), 31 deletions(-)

diff --git a/examples/accelgroup.js b/examples/accelgroup.js
index 8614c0f..c586443 100755
--- a/examples/accelgroup.js
+++ b/examples/accelgroup.js
@@ -3,7 +3,7 @@
 Gtk = imports.gi.Gtk;
 Gdk = imports.gi.Gdk;
 
-Gtk.init(null, null);
+Gtk.init(Seed.argv);
 
 var w = new Gtk.Window();
 w.signal.hide.connect(Gtk.main_quit);
diff --git a/examples/actions.js b/examples/actions.js
index 305549c..c817c5a 100755
--- a/examples/actions.js
+++ b/examples/actions.js
@@ -1,7 +1,7 @@
 #!/usr/bin/env seed
 
 Gtk = imports.gi.Gtk;
-Gtk.init(null, null);
+Gtk.init(Seed.argv);
 
 var window = new Gtk.Window();
 window.signal.hide.connect(Gtk.main_quit);
diff --git a/examples/browser/main.js b/examples/browser/main.js
index 32a98c3..713caa3 100755
--- a/examples/browser/main.js
+++ b/examples/browser/main.js
@@ -3,7 +3,7 @@
 Gtk = imports.gi.Gtk;
 WebKit = imports.gi.WebKit;
 
-Gtk.init(null, null);
+Gtk.init(Seed.argv);
 
 TabbedBrowser = imports.TabbedBrowser;
 BrowserSettings = imports.BrowserSettings;
diff --git a/examples/calculator.js b/examples/calculator.js
index a50d8ec..3bc5cbe 100755
--- a/examples/calculator.js
+++ b/examples/calculator.js
@@ -4,7 +4,7 @@ Gdk = imports.gi.Gdk;
 Gtk = imports.gi.Gtk;
 GLib = imports.gi.GLib;
 
-Gtk.init(null, null);
+Gtk.init(Seed.argv);
 
 var calc_val = "";
 
diff --git a/examples/clutter-0.8.js b/examples/clutter-0.8.js
index db0a8bd..9927f71 100755
--- a/examples/clutter-0.8.js
+++ b/examples/clutter-0.8.js
@@ -2,7 +2,7 @@
 imports.gi.versions.Clutter = "0.8";
 Clutter = imports.gi.Clutter;
 
-Clutter.init(null, null);
+Clutter.init(Seed.argv);
 
 colors = [	"blanched almond",
 		"OldLace",
diff --git a/examples/clutter-cairo.js b/examples/clutter-cairo.js
index 89739ba..9bf94e2 100755
--- a/examples/clutter-cairo.js
+++ b/examples/clutter-cairo.js
@@ -7,7 +7,7 @@ imports.gi.versions.ClutterCairo = "0.8"
 Clutter = imports.gi.Clutter;
 ClutterCairo = imports.gi.ClutterCairo;
 
-Clutter.init(null, null);
+Clutter.init(Seed.argv);
 
 c = new ClutterCairo.ClutterCairo.c_new(100, 100);
 cr = c.create();
diff --git a/examples/clutter-pad.js b/examples/clutter-pad.js
index bca229a..2a372b6 100755
--- a/examples/clutter-pad.js
+++ b/examples/clutter-pad.js
@@ -10,8 +10,8 @@ GtkSource = imports.gi.GtkSource;
 GLib = imports.gi.GLib;
 sandbox = imports.sandbox;
 
-Gtk.init(null, null);
-GtkClutter.init(null, null);
+Gtk.init(Seed.argv);
+GtkClutter.init(Seed.argv);
 
 var window = new Gtk.Window();
 window.signal.destroy.connect(function(o) {Gtk.main_quit()});
diff --git a/examples/clutter-shader/main.js b/examples/clutter-shader/main.js
index a827b94..79bee74 100755
--- a/examples/clutter-shader/main.js
+++ b/examples/clutter-shader/main.js
@@ -9,8 +9,8 @@ GtkClutter = imports.gi.GtkClutter;
 Gio = imports.gi.Gio;
 ShaderView = imports.ShaderView;
 
-Gtk.init(null, null);
-GtkClutter.init(null, null);
+Gtk.init(Seed.argv);
+GtkClutter.init(Seed.argv);
 
 var window = new Gtk.Window();
 var gtkstage = new GtkClutter.Embed();
diff --git a/examples/clutter-transitions/main.js b/examples/clutter-transitions/main.js
index 3efee18..591f91e 100755
--- a/examples/clutter-transitions/main.js
+++ b/examples/clutter-transitions/main.js
@@ -5,7 +5,7 @@ imports.gi.versions.Clutter = "0.8";
 Clutter = imports.gi.Clutter;
 GLib = imports.gi.GLib;
 
-Clutter.init(null, null);
+Clutter.init(Seed.argv);
 
 Seed.include("transition-library.js");
 
diff --git a/examples/gconf.js b/examples/gconf.js
index 1463d34..201d7db 100755
--- a/examples/gconf.js
+++ b/examples/gconf.js
@@ -1,7 +1,7 @@
 #!/usr/bin/env seed
 GConf = imports.gi.GConf;
 
-GConf.init(null, null);
+GConf.init(Seed.argv);
 
 // client = new GConf.Client() makes GConf segfault, don't think it's our fault.
 client = GConf.Client.get_default();
diff --git a/examples/gtkplug.js b/examples/gtkplug.js
index 6357def..d59ab39 100755
--- a/examples/gtkplug.js
+++ b/examples/gtkplug.js
@@ -9,7 +9,7 @@ var pipes = new Multiprocessing.Pipe();
 var child_pid = Seed.fork();
 
 if (child_pid === 0){
-    Gtk.init(null, null);
+    Gtk.init(Seed.argv);
 
     var id = parseInt(pipes[0].read(), 10);
 
@@ -21,7 +21,7 @@ if (child_pid === 0){
     Gtk.main();
 }
 
-Gtk.init(null, null);
+Gtk.init(Seed.argv);
 
 var window = new Gtk.Window();
 window.signal.hide.connect(Gtk.main_quit);
diff --git a/examples/gtktreeview.js b/examples/gtktreeview.js
index 566e405..4a457eb 100755
--- a/examples/gtktreeview.js
+++ b/examples/gtktreeview.js
@@ -2,7 +2,7 @@
 Gtk = imports.gi.Gtk;
 GObject = imports.gi.GObject;
 
-Gtk.init(null, null);
+Gtk.init(Seed.argv);
 
 
 var w = new Gtk.Window();
diff --git a/examples/json-packing.js b/examples/json-packing.js
index 5e3e826..d554c8d 100755
--- a/examples/json-packing.js
+++ b/examples/json-packing.js
@@ -2,7 +2,7 @@
 
 Gtk = imports.gi.Gtk;
 
-Gtk.init(null, null);
+Gtk.init(Seed.argv);
 
 var label = new Gtk.Label({label: "Hi!"});
 var button = new Gtk.Button({label: "Bye"});
diff --git a/examples/n-oscillator.js b/examples/n-oscillator.js
index eca5713..4da1fbf 100755
--- a/examples/n-oscillator.js
+++ b/examples/n-oscillator.js
@@ -2,8 +2,8 @@
 Gtk = imports.gi.Gtk;
 Gst = imports.gi.Gst;
 
-Gst.init(null, null);
-Gtk.init(null, null);
+Gst.init(Seed.argv);
+Gtk.init(Seed.argv);
 
 // This is a really ugly program. Please fix it.
 
diff --git a/examples/notify-test.js b/examples/notify-test.js
index c2cba7b..09667f9 100755
--- a/examples/notify-test.js
+++ b/examples/notify-test.js
@@ -3,7 +3,7 @@ Gtk = imports.gi.Gtk;
 Gio = imports.gi.Gio;
 Notify = imports.gi.Notify;
 
-Gtk.init(null, null);
+Gtk.init(Seed.argv);
 
 function file_changed(monitor, child, other, event){
     var notification =
diff --git a/examples/pango.js b/examples/pango.js
index e11e866..51ebd9b 100755
--- a/examples/pango.js
+++ b/examples/pango.js
@@ -9,8 +9,8 @@ GtkClutter = imports.gi.GtkClutter;
 Pango = imports.gi.Pango;
 PangoFT2 = imports.gi.PangoFT2;
 
-Gtk.init(null, null);
-GtkClutter.init(null, null);
+Gtk.init(Seed.argv);
+GtkClutter.init(Seed.argv);
 
 PangoWidget = new GType({
 	parent: Clutter.Text.type,
diff --git a/examples/pong/pong.js b/examples/pong/pong.js
index fe9d1e5..897db57 100755
--- a/examples/pong/pong.js
+++ b/examples/pong/pong.js
@@ -3,7 +3,7 @@
 imports.gi.versions.Clutter = "0.8";
 Clutter = imports.gi.Clutter;
 
-Clutter.init(null, null);
+Clutter.init(Seed.argv);
 
 const GLOBAL_DECEL = 0.2;
 
diff --git a/examples/poppler.js b/examples/poppler.js
index f34d265..4fe8a01 100755
--- a/examples/poppler.js
+++ b/examples/poppler.js
@@ -5,7 +5,7 @@ Gdk = imports.gi.Gdk;
 Gtk = imports.gi.Gtk;
 Poppler = imports.gi.Poppler;
 
-Gtk.init(null, null);
+Gtk.init(Seed.argv);
 
 var current_document = null;
 var drawing_area = null;
diff --git a/examples/same-seed/main.js b/examples/same-seed/main.js
index 28018a6..2905fdc 100755
--- a/examples/same-seed/main.js
+++ b/examples/same-seed/main.js
@@ -20,9 +20,9 @@ GLib = imports.gi.GLib;
 Pango = imports.gi.Pango;
 GObject = imports.gi.GObject;
 
-Gtk.init(null, null);
-Clutter.init(null, null);
-GConf.init(null, null);
+Gtk.init(Seed.argv);
+Clutter.init(Seed.argv);
+GConf.init(Seed.argv);
 
 Seed.include("light.js");
 Seed.include("board.js");
diff --git a/examples/threaded-repl.js b/examples/threaded-repl.js
index 95638f4..64474fe 100755
--- a/examples/threaded-repl.js
+++ b/examples/threaded-repl.js
@@ -3,7 +3,7 @@
 Gtk = imports.gi.Gtk;
 GLib = imports.gi.GLib;
 
-Gtk.init(null, null);
+Gtk.init(Seed.argv);
 var w = new Gtk.Window();
 
 //Can interact with window at threaded repl.
diff --git a/examples/twitter/twitter.js b/examples/twitter/twitter.js
index 0d5f060..dde1d9d 100755
--- a/examples/twitter/twitter.js
+++ b/examples/twitter/twitter.js
@@ -13,7 +13,7 @@ GLib = imports.gi.GLib;
 Pretty = imports.pretty;
 
 // Initialize GTK+
-Gtk.init(null, null);
+Gtk.init(Seed.argv);
 
 // Create the main application window and set the title
 var window = new Gtk.Window({"title": "Twitter Search", "border-width": 5});
diff --git a/examples/video.js b/examples/video.js
index a3544f0..834e349 100755
--- a/examples/video.js
+++ b/examples/video.js
@@ -3,8 +3,8 @@ Gtk = imports.gi.Gtk;
 Gst = imports.gi.Gst;
 GstVideo = imports.gi.GstVideo;
 
-Gtk.init(null, null);
-Gst.init(null, null);
+Gtk.init(Seed.argv);
+Gst.init(Seed.argv);
 
 pipeline = new Gst.Pipeline({name: "VideoTest"});
 
diff --git a/examples/vte-test.js b/examples/vte-test.js
index 1709845..bb107d4 100755
--- a/examples/vte-test.js
+++ b/examples/vte-test.js
@@ -3,7 +3,7 @@
 Gtk = imports.gi.Gtk;
 Vte = imports.gi.Vte;
 
-Gtk.init(null, null);
+Gtk.init(Seed.argv);
 
 var window = new Gtk.Window();
 window.signal.hide.connect(Gtk.main_quit);



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