diff --git a/doc/cookbook/animations.xml b/doc/cookbook/animations.xml index 61f44c55b..8f7e7494d 100644 --- a/doc/cookbook/animations.xml +++ b/doc/cookbook/animations.xml @@ -2346,7 +2346,7 @@ clutter_animator_start (animator); ClutterTimeline *timeline = clutter_timeline_new (1000); -clutter_timeline_set_loop (timeline, TRUE); +clutter_timeline_set_repeat_count (timeline, -1); @@ -2398,7 +2398,7 @@ clutter_actor_animate_with_timeline (actor, ClutterTimeline *timeline = clutter_timeline_new (2000); -clutter_timeline_set_loop (timeline, TRUE); +clutter_timeline_set_repeat_count (timeline, -1); @@ -2554,7 +2554,7 @@ clutter_state_warp_to_state (transitions, "right"); Setting the ClutterTimeline to loop - (via clutter_timeline_set_loop()). This + (via clutter_timeline_set_repeat_count()). This is the best approach where the timeline is explicit (for ClutterAnimator and implicit animations). @@ -3140,7 +3140,7 @@ ClutterTimeline *timeline; * indefinitely and reverses its direction each time it completes */ timeline = clutter_timeline_new (1000); -clutter_timeline_set_loop (timeline, TRUE); +clutter_timeline_set_repeat_count (timeline, -1); clutter_timeline_set_auto_reverse (timeline, TRUE); /* animate the offset property on the constraint from 0.0 to 1.0; diff --git a/doc/cookbook/examples/animations-looping-animator.c b/doc/cookbook/examples/animations-looping-animator.c index eb926ea75..96280bcb5 100644 --- a/doc/cookbook/examples/animations-looping-animator.c +++ b/doc/cookbook/examples/animations-looping-animator.c @@ -39,7 +39,7 @@ main (int argc, clutter_actor_set_position (actor, 150, 50); timeline = clutter_timeline_new (2000); - clutter_timeline_set_loop (timeline, TRUE); + clutter_timeline_set_repeat_count (timeline, -1); animator = clutter_animator_new (); clutter_animator_set_timeline (animator, timeline); diff --git a/doc/cookbook/examples/animations-looping-implicit.c b/doc/cookbook/examples/animations-looping-implicit.c index 4ea03b258..c72fe8047 100644 --- a/doc/cookbook/examples/animations-looping-implicit.c +++ b/doc/cookbook/examples/animations-looping-implicit.c @@ -49,7 +49,7 @@ main (int argc, clutter_actor_set_position (state->actor, 150, 50); state->timeline = clutter_timeline_new (1000); - clutter_timeline_set_loop (state->timeline, TRUE); + clutter_timeline_set_repeat_count (state->timeline, -1); clutter_timeline_set_auto_reverse (state->timeline, TRUE); g_signal_connect (stage, diff --git a/doc/cookbook/examples/animations-path-circle.c b/doc/cookbook/examples/animations-path-circle.c index ddb5992c8..ca7f28271 100644 --- a/doc/cookbook/examples/animations-path-circle.c +++ b/doc/cookbook/examples/animations-path-circle.c @@ -110,7 +110,7 @@ main (int argc, NULL); timeline = clutter_animator_get_timeline (animator); - clutter_timeline_set_loop (timeline, TRUE); + clutter_timeline_set_repeat_count (timeline, -1); clutter_timeline_set_auto_reverse (timeline, TRUE); g_signal_connect (stage, diff --git a/doc/cookbook/examples/animations-path.c b/doc/cookbook/examples/animations-path.c index 95c715fa8..f6e60f119 100644 --- a/doc/cookbook/examples/animations-path.c +++ b/doc/cookbook/examples/animations-path.c @@ -47,7 +47,7 @@ main (int argc, /* set up the timeline */ timeline = clutter_timeline_new (1000); - clutter_timeline_set_loop (timeline, TRUE); + clutter_timeline_set_repeat_count (timeline, -1); clutter_timeline_set_auto_reverse (timeline, TRUE); clutter_actor_animate_with_timeline (rectangle, CLUTTER_LINEAR, timeline,