[clutter] animation: Do not use deprecated timeline methods



commit cf1abda709f0eadb30a25bdf74efafcf4f46f4f0
Author: Emmanuele Bassi <ebassi linux intel com>
Date:   Mon Feb 13 15:04:00 2012 +0000

    animation: Do not use deprecated timeline methods

 clutter/clutter-animation.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/clutter/clutter-animation.c b/clutter/clutter-animation.c
index 8124373..e02dbb1 100644
--- a/clutter/clutter-animation.c
+++ b/clutter/clutter-animation.c
@@ -1399,7 +1399,7 @@ clutter_animation_set_loop (ClutterAnimation *animation,
   g_object_freeze_notify (G_OBJECT (animation));
 
   timeline = clutter_animation_get_timeline_internal (animation);
-  clutter_timeline_set_loop (timeline, loop);
+  clutter_timeline_set_repeat_count (timeline, loop ? -1 : 0);
 
   g_object_notify_by_pspec (G_OBJECT (animation), obj_props[PROP_LOOP]);
 
@@ -1425,7 +1425,7 @@ clutter_animation_get_loop (ClutterAnimation *animation)
 
   timeline = clutter_animation_get_timeline_internal (animation);
 
-  return clutter_timeline_get_loop (timeline);
+  return clutter_timeline_get_repeat_count (timeline) != 0;
 }
 
 /**



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