[seed] Update spring example to recent clutter API changes.



commit b951c6023bb2898dfddf877b8d0d61822ee94e76
Author: Tim Horton <hortont svn gnome org>
Date:   Fri Jun 12 18:43:34 2009 -0400

    Update spring example to recent clutter API changes.

 examples/clutter-pad/examples/spring.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/examples/clutter-pad/examples/spring.js b/examples/clutter-pad/examples/spring.js
index 263ff2c..b28327a 100644
--- a/examples/clutter-pad/examples/spring.js
+++ b/examples/clutter-pad/examples/spring.js
@@ -85,6 +85,7 @@ stage.signal.button_press_event.connect(click);
 stage.signal.button_release_event.connect(release);
 stage.signal.motion_event.connect(drag);
 
-var update = new Clutter.Timeline({fps:60, num_frames:10000, loop:true});
+var update = new Clutter.Timeline({duration: 500});
+update.loop = true;
 update.signal.new_frame.connect(update_spring);
 update.start();



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