docs: Use :reverse in the Behaviour migration guide

Instead of the ::completed signal flip.
This commit is contained in:
Emmanuele Bassi 2010-12-09 12:00:29 +00:00
parent b16ea09988
commit e1f48b15ee

View File

@ -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);
</programlisting>
</informalexample>