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,
|
"fixed::scale-gravity", CLUTTER_GRAVITY_CENTER,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
clutter_animation_set_loop (animation, TRUE);
|
ClutterTimeline *timeline = clutter_animation_get_timeline (animation);
|
||||||
|
clutter_timeline_set_loop (timeline, TRUE);
|
||||||
g_signal_connect (clutter_animation_get_timeline (animation),
|
clutter_timeline_set_reverse (timeline, TRUE);
|
||||||
"completed", G_CALLBACK (reverse_timeline),
|
|
||||||
NULL);
|
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</informalexample>
|
</informalexample>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user