[clutter] cookbook: Use clutter_timeline_set_repeat_count()



commit 657e0ce093198b83851f90ac47809b1732e3fa6e
Author: Emmanuele Bassi <ebassi linux intel com>
Date:   Mon Feb 13 14:58:47 2012 +0000

    cookbook: Use clutter_timeline_set_repeat_count()

 doc/cookbook/animations.xml                        |    8 ++++----
 .../examples/animations-looping-animator.c         |    2 +-
 .../examples/animations-looping-implicit.c         |    2 +-
 doc/cookbook/examples/animations-path-circle.c     |    2 +-
 doc/cookbook/examples/animations-path.c            |    2 +-
 5 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/doc/cookbook/animations.xml b/doc/cookbook/animations.xml
index 61f44c5..8f7e749 100644
--- a/doc/cookbook/animations.xml
+++ b/doc/cookbook/animations.xml
@@ -2346,7 +2346,7 @@ clutter_animator_start (animator);
         <informalexample>
           <programlisting>
 ClutterTimeline *timeline = clutter_timeline_new (1000);
-clutter_timeline_set_loop (timeline, TRUE);
+clutter_timeline_set_repeat_count (timeline, -1);
           </programlisting>
         </informalexample>
 
@@ -2398,7 +2398,7 @@ clutter_actor_animate_with_timeline (actor,
         <informalexample>
           <programlisting>
 ClutterTimeline *timeline = clutter_timeline_new (2000);
-clutter_timeline_set_loop (timeline, TRUE);
+clutter_timeline_set_repeat_count (timeline, -1);
           </programlisting>
         </informalexample>
 
@@ -2554,7 +2554,7 @@ clutter_state_warp_to_state (transitions, "right");
       <orderedlist>
         <listitem>
           <para>Setting the <type>ClutterTimeline</type> to loop
-          (via <function>clutter_timeline_set_loop()</function>). This
+          (via <function>clutter_timeline_set_repeat_count()</function>). This
           is the best approach where the timeline is explicit (for
           <type>ClutterAnimator</type> and implicit animations).</para>
         </listitem>
@@ -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 eb926ea..96280bc 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 4ea03b2..c72fe80 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 ddb5992..ca7f282 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 95c715f..f6e60f1 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,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]