docs: Use :reverse in the Behaviour migration guide
Instead of the ::completed signal flip.
This commit is contained in:
parent
b16ea09988
commit
e1f48b15ee
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user