[clutter] timeline: Increment current-repeat after ::completed
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] timeline: Increment current-repeat after ::completed
- Date: Mon, 19 Mar 2012 18:07:37 +0000 (UTC)
commit 65cf2039d89f00811beacea4ce98b5003df49f94
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Mon Mar 19 18:05:29 2012 +0000
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 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/clutter/clutter-timeline.c b/clutter/clutter-timeline.c
index 3a585eb..485be13 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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]