[seed] Update clutter-cairo example to use the new imports system, and update style
- From: Robert Carr <racarr src gnome org>
- To: svn-commits-list gnome org
- Subject: [seed] Update clutter-cairo example to use the new imports system, and update style
- Date: Tue, 28 Apr 2009 16:10:21 -0400 (EDT)
commit 98b45af1c72da26f36a53d50d7ac60528f07c72d
Author: Robert Carr <racarr svn gnome org>
Date: Tue Apr 28 15:49:48 2009 -0400
Update clutter-cairo example to use the new imports system, and update style
---
examples/clutter-cairo.js | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/examples/clutter-cairo.js b/examples/clutter-cairo.js
index f28c55b..89739ba 100755
--- a/examples/clutter-cairo.js
+++ b/examples/clutter-cairo.js
@@ -1,8 +1,11 @@
#!/usr/bin/env seed
-Seed.import_namespace("Canvas");
-Seed.import_namespace("Clutter", "0.8");
-Seed.import_namespace("ClutterCairo", "0.8");
+Canvas = imports.canvas;
+imports.gi.versions.Clutter = "0.8"
+imports.gi.versions.ClutterCairo = "0.8"
+
+Clutter = imports.gi.Clutter;
+ClutterCairo = imports.gi.ClutterCairo;
Clutter.init(null, null);
@@ -23,7 +26,7 @@ c.x = c.y = 100;
ctx.destroy();
s = new Clutter.Stage();
-s.signal.hide.connect(function () { Clutter.main_quit(); });
+s.signal.hide.connect(Clutter.main_quit);
s.add_actor(c);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]