[seed] Update clutter 0.9 test to new imports style and match some changes in Clutter trunk.



commit 434308df1b49763e6f99b3d78af04e3cc99b0e92
Author: Tim Horton <hortont hortont com>
Date:   Wed Apr 15 02:50:42 2009 -0400

    Update clutter 0.9 test to new imports style and match some changes in Clutter trunk.
---
 examples/clutter-0.9.js |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/examples/clutter-0.9.js b/examples/clutter-0.9.js
index 6f0e2fc..2d928c2 100755
--- a/examples/clutter-0.9.js
+++ b/examples/clutter-0.9.js
@@ -1,6 +1,10 @@
 #!/usr/bin/env seed
 
-Seed.import_namespace("Clutter", "0.9");
+imports.gi.versions.Clutter = "0.9";
+
+Clutter = imports.gi.Clutter;
+GObject = imports.gi.GObject;
+
 Clutter.init(null, null);
 
 colors = [	"blanched almond", 
@@ -23,7 +27,7 @@ function create_rectangles(rectangles, colors)
 		var c = new Clutter.Color();
 		var r = new Clutter.Rectangle();
 		
-		Clutter.color_parse(colors[i], c);
+		c.from_string(colors[i]);
 		
 		r.width = r.height = stage.height / colors.length;
 		r.color = c;



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