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);