From 65cf2039d89f00811beacea4ce98b5003df49f94 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Mon, 19 Mar 2012 18:05:29 +0000 Subject: [PATCH] timeline: Increment current-repeat after ::completed The ::completed signal emission is part of the current cycle; repeating, like the automatic reverse of the timeline's direction, happens after the ::completed chain of handlers has been called. --- clutter/clutter-timeline.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clutter/clutter-timeline.c b/clutter/clutter-timeline.c index 3a585ebc0..485be13dc 100644 --- a/clutter/clutter-timeline.c +++ b/clutter/clutter-timeline.c @@ -989,8 +989,6 @@ clutter_timeline_do_frame (ClutterTimeline *timeline) (long) priv->elapsed_time, (long) priv->msecs_delta); - priv->current_repeat += 1; - if (priv->is_playing && (priv->repeat_count == 0 || priv->repeat_count == priv->current_repeat)) @@ -1007,6 +1005,8 @@ clutter_timeline_do_frame (ClutterTimeline *timeline) g_signal_emit (timeline, timeline_signals[COMPLETED], 0); + priv->current_repeat += 1; + if (priv->auto_reverse) { /* :auto-reverse changes the direction of the timeline */