From cf1abda709f0eadb30a25bdf74efafcf4f46f4f0 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Mon, 13 Feb 2012 15:04:00 +0000 Subject: [PATCH] animation: Do not use deprecated timeline methods --- clutter/clutter-animation.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clutter/clutter-animation.c b/clutter/clutter-animation.c index 812437398..e02dbb1e0 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; } /**