1
0
Fork 0

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.
This commit is contained in:
Emmanuele Bassi 2012-03-19 18:05:29 +00:00
parent 1dbb1db183
commit 65cf2039d8

View file

@ -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 */