From e1f48b15ee92f60f2a84c808ba0d505f38a1bf61 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 9 Dec 2010 12:00:29 +0000 Subject: [PATCH] docs: Use :reverse in the Behaviour migration guide Instead of the ::completed signal flip. --- doc/reference/clutter/migrating-ClutterBehaviour.xml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/doc/reference/clutter/migrating-ClutterBehaviour.xml b/doc/reference/clutter/migrating-ClutterBehaviour.xml index 20dd1f6d7..7b2eb7c6b 100644 --- a/doc/reference/clutter/migrating-ClutterBehaviour.xml +++ b/doc/reference/clutter/migrating-ClutterBehaviour.xml @@ -104,11 +104,9 @@ reverse_timeline (ClutterTimeline *timeline) "fixed::scale-gravity", CLUTTER_GRAVITY_CENTER, NULL); - clutter_animation_set_loop (animation, TRUE); - - g_signal_connect (clutter_animation_get_timeline (animation), - "completed", G_CALLBACK (reverse_timeline), - NULL); + ClutterTimeline *timeline = clutter_animation_get_timeline (animation); + clutter_timeline_set_loop (timeline, TRUE); + clutter_timeline_set_reverse (timeline, TRUE);