[seed] Clutter added animate_with_timelinev, so we should have an extension for that as well.
- From: Tim Horton <hortont src gnome org>
- To: svn-commits-list gnome org
- Subject: [seed] Clutter added animate_with_timelinev, so we should have an extension for that as well.
- Date: Thu, 7 May 2009 22:39:31 -0400 (EDT)
commit fee20fc2c75f67822582d5e4f2e316608e4c0db0
Author: Tim Horton <hortont svn gnome org>
Date: Thu May 7 22:39:03 2009 -0400
Clutter added animate_with_timelinev, so we should have an extension for that as well.
---
extensions/Clutter.js | 12 ++++++++++++
patches/clutter-animatev-annotation.patch | 11 ++++++++++-
2 files changed, 22 insertions(+), 1 deletions(-)
diff --git a/extensions/Clutter.js b/extensions/Clutter.js
index 8ab808a..f8eef45 100644
--- a/extensions/Clutter.js
+++ b/extensions/Clutter.js
@@ -13,3 +13,15 @@ Clutter.Actor.prototype.animate = function(mode, duration, json)
}
+Clutter.Actor.prototype.animate_with_timeline = function(mode, timeline, json)
+{
+ var properties = new Array();
+ var endvalues = new Array();
+ for (var prop in json) {
+ properties.push(prop);
+ endvalues.push(json[prop]);
+ }
+ return this.animate_with_timelinev(mode, timeline, properties.length,
+ properties, endvalues);
+
+}
diff --git a/patches/clutter-animatev-annotation.patch b/patches/clutter-animatev-annotation.patch
index 146ccc0..9ff980c 100644
--- a/patches/clutter-animatev-annotation.patch
+++ b/patches/clutter-animatev-annotation.patch
@@ -1,5 +1,5 @@
diff --git a/clutter/clutter-animation.c b/clutter/clutter-animation.c
-index 24b9c3f..98c49b3 100644
+index 24b9c3f..8bc3fcd 100644
--- a/clutter/clutter-animation.c
+++ b/clutter/clutter-animation.c
@@ -1848,7 +1848,7 @@ clutter_actor_animate (ClutterActor *actor,
@@ -11,3 +11,12 @@ index 24b9c3f..98c49b3 100644
* property names to set
* @values: (array length=n_properies): a vector containing the
* property values to set
+@@ -1923,7 +1923,7 @@ clutter_actor_animatev (ClutterActor *actor,
+ * @mode: an animation mode logical id
+ * @timeline: a #ClutterTimeline
+ * @n_properties: number of property names and values
+- * @properties: (array length=n_properties): a vector containing the
++ * @properties: (array) (element-type utf8): a vector containing the
+ * property names to set
+ * @values: (array length=n_properies): a vector containing the
+ * property values to set
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]