[seed] Update some more examples to new importer
- From: Robert Carr <racarr src gnome org>
- To: svn-commits-list gnome org
- Subject: [seed] Update some more examples to new importer
- Date: Sun, 12 Apr 2009 11:23:04 -0400 (EDT)
commit 814c1bbc82575fb42f1bcaadc3f107868989d1ed
Author: Robert Carr <racarr mireia (none)>
Date: Sun Apr 12 11:22:52 2009 -0400
Update some more examples to new importer
---
examples/glib/env.js | 2 +-
examples/glib/thread.js | 2 +-
examples/glib/timeout.js | 2 +-
examples/glib/timer.js | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/examples/glib/env.js b/examples/glib/env.js
index 4b9106b..fb885a1 100755
--- a/examples/glib/env.js
+++ b/examples/glib/env.js
@@ -1,5 +1,5 @@
#!/usr/bin/env seed
-Seed.import_namespace("GLib");
+GLib = imports.gi.GLib;
Seed.print(GLib.getenv("HOME"));
GLib.setenv("SEED", "Why Hello!");
diff --git a/examples/glib/thread.js b/examples/glib/thread.js
index eb9ee57..8602bf7 100755
--- a/examples/glib/thread.js
+++ b/examples/glib/thread.js
@@ -1,5 +1,5 @@
#!/usr/bin/env seed
-Seed.import_namespace("GLib");
+GLib = imports.gi.GLib;
count = 0;
one = true;
diff --git a/examples/glib/timeout.js b/examples/glib/timeout.js
index a0452a9..2ed3442 100755
--- a/examples/glib/timeout.js
+++ b/examples/glib/timeout.js
@@ -1,6 +1,6 @@
#!/usr/bin/env seed
-Seed.import_namespace("GLib");
+GLib = imports.gi.GLib;
count = 0;
diff --git a/examples/glib/timer.js b/examples/glib/timer.js
index ea8ad6d..25073cb 100755
--- a/examples/glib/timer.js
+++ b/examples/glib/timer.js
@@ -1,5 +1,5 @@
#!/usr/bin/env seed
-Seed.import_namespace("GLib");
+GLib = imports.gi.GLib;
timer = GLib.timer_new();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]