[seed] Workaround for strange timeline problem.



commit f64b01c0505f8ddf9a20c2bced56e0ff55fef4b8
Author: Tim Horton <hortont424 gmail com>
Date:   Fri Apr 17 04:13:52 2009 -0400

    Workaround for strange timeline problem.
---
 examples/clutter-transitions/main.js |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/examples/clutter-transitions/main.js b/examples/clutter-transitions/main.js
index fbb0e68..373d0b5 100755
--- a/examples/clutter-transitions/main.js
+++ b/examples/clutter-transitions/main.js
@@ -66,7 +66,11 @@ function animate()
 	stage.add_actor(at);
 	stage.show_all();
 
-	GLib.timeout_add(500, next_transition);
+	//GLib.timeout_add(500, next_transition);
+	trtimeline = new Clutter.Timeline();
+	trtimeline.duration = 500;
+	trtimeline.signal.completed.connect(next_transition);
+	trtimeline.start();
 }
 
 animate();



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