[seed] extensions: Whoops, put Seed.printf back
- From: Robert Carr <racarr src gnome org>
- To: svn-commits-list gnome org
- Subject: [seed] extensions: Whoops, put Seed.printf back
- Date: Wed, 27 May 2009 09:44:54 -0400 (EDT)
commit 11bed8dabf1dea3ca2c21008128e73fbadfd2551
Author: Robert Carr <racarr svn gnome org>
Date: Wed May 27 09:44:24 2009 -0400
extensions: Whoops, put Seed.printf back
---
extensions/Clutter.js | 12 +++++++-----
extensions/Seed.js.in | 2 +-
2 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/extensions/Clutter.js b/extensions/Clutter.js
index 169a811..12e63d7 100644
--- a/extensions/Clutter.js
+++ b/extensions/Clutter.js
@@ -1,20 +1,22 @@
Clutter = imports.gi.Clutter;
+var animations = new Array();
+
Clutter.Actor.prototype.animate = function(mode, duration, json)
{
var properties = new Array();
var endvalues = new Array();
- for (var prop in json) {
+ for (var prop in json){
properties.push(prop);
endvalues.push(new Array(this.__property_type(prop), json[prop]));
}
var animation = this.animatev(mode, duration, properties.length,
properties, endvalues);
- this.__animation__ = animation;
+ animations.push(animation);
animation.timeline.signal["completed"].connect(
function(timeline, obj){
- delete obj.__animation__;
+ animations.splice(animations.indexOf(animation),1);
}, this);
return animation;
@@ -33,10 +35,10 @@ Clutter.Actor.prototype.animate_with_timeline = function(mode, timeline, json)
this.animate_with_timelinev(mode, timeline, properties.length,
properties, endvalues);
- this.__animation__ = animation;
+ animations.push(animation);
animation.timeline.signal["completed"].connect(
function(timeline, obj){
- delete obj.__animation__;
+ animations.splice(animations.indexOf(animation),1);
}, this);
return animation;
diff --git a/extensions/Seed.js.in b/extensions/Seed.js.in
index 7e6f18e..c3fdacb 100644
--- a/extensions/Seed.js.in
+++ b/extensions/Seed.js.in
@@ -168,7 +168,7 @@ Seed.thread_repl = function()
}
-printf = function () { print(Seed.sprintf.apply(this, arguments)) };
+Seed.printf = function () { print(Seed.sprintf.apply(this, arguments)) };
imports.searchPath = ["@GNOME_JS_DIR@", "@prefix@/lib/seed", "@prefix@/share/seed", "/usr/local/lib/seed","/usr/local/share/seed","/usr/lib/seed","/usr/share/seed","."];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]