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:
parent
1dbb1db183
commit
65cf2039d8
@ -989,8 +989,6 @@ clutter_timeline_do_frame (ClutterTimeline *timeline)
|
|||||||
(long) priv->elapsed_time,
|
(long) priv->elapsed_time,
|
||||||
(long) priv->msecs_delta);
|
(long) priv->msecs_delta);
|
||||||
|
|
||||||
priv->current_repeat += 1;
|
|
||||||
|
|
||||||
if (priv->is_playing &&
|
if (priv->is_playing &&
|
||||||
(priv->repeat_count == 0 ||
|
(priv->repeat_count == 0 ||
|
||||||
priv->repeat_count == priv->current_repeat))
|
priv->repeat_count == priv->current_repeat))
|
||||||
@ -1007,6 +1005,8 @@ clutter_timeline_do_frame (ClutterTimeline *timeline)
|
|||||||
|
|
||||||
g_signal_emit (timeline, timeline_signals[COMPLETED], 0);
|
g_signal_emit (timeline, timeline_signals[COMPLETED], 0);
|
||||||
|
|
||||||
|
priv->current_repeat += 1;
|
||||||
|
|
||||||
if (priv->auto_reverse)
|
if (priv->auto_reverse)
|
||||||
{
|
{
|
||||||
/* :auto-reverse changes the direction of the timeline */
|
/* :auto-reverse changes the direction of the timeline */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user