seed r827 - trunk/examples/same-seed
- From: hortont svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r827 - trunk/examples/same-seed
- Date: Mon, 2 Feb 2009 04:25:49 +0000 (UTC)
Author: hortont
Date: Mon Feb 2 04:25:49 2009
New Revision: 827
URL: http://svn.gnome.org/viewvc/seed?rev=827&view=rev
Log:
Use clutter 0.9.
Modified:
trunk/examples/same-seed/light.js
trunk/examples/same-seed/main.js
Modified: trunk/examples/same-seed/light.js
==============================================================================
--- trunk/examples/same-seed/light.js (original)
+++ trunk/examples/same-seed/light.js Mon Feb 2 04:25:49 2009
@@ -7,13 +7,13 @@
var tx = GtkClutter.texture_new_from_pixbuf(pb);
tx.filter_quality = Clutter.TextureQuality.HIGH;
+ stage.add_actor(tx);
+ tx.x = tx.y = -2000;
+
return tx;
}
-var colors = [load_svg("blue.svg"),
- load_svg("green.svg"),
- load_svg("red.svg"),
- load_svg("yellow.svg")];
+var colors;
Light = new GType({
parent: Clutter.Group.type,
@@ -28,8 +28,8 @@
// Public
this.visited = false;
- this.on = new Clutter.CloneTexture({parent_texture: colors[state],
- reactive: true});
+ this.on = new Clutter.Clone({source: colors[state],
+ reactive: true});
this.get_state = function ()
{
Modified: trunk/examples/same-seed/main.js
==============================================================================
--- trunk/examples/same-seed/main.js (original)
+++ trunk/examples/same-seed/main.js Mon Feb 2 04:25:49 2009
@@ -6,8 +6,8 @@
// Configuration
Seed.import_namespace("Gtk");
-Seed.import_namespace("Clutter", "0.8");
-Seed.import_namespace("GtkClutter", "0.8");
+Seed.import_namespace("Clutter", "0.9");
+Seed.import_namespace("GtkClutter", "0.9");
Seed.import_namespace("GdkPixbuf");
Seed.import_namespace("GConf");
Seed.import_namespace("GLib");
@@ -28,6 +28,9 @@
stage.color = black;
stage.set_size((tiles_w * tile_size),(tiles_h * tile_size));
+colors = [load_svg("blue.svg"), load_svg("green.svg"),
+ load_svg("red.svg"), load_svg("yellow.svg")]
+
board = new Board();
stage.add_actor(board);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]