[clutter/wip/transitions: 2/13] docs: Use the Transition convenience API



commit 44101bee6c628ebecec7eda746150912ef425670
Author: Emmanuele Bassi <ebassi linux intel com>
Date:   Thu Mar 22 10:48:02 2012 +0000

    docs: Use the Transition convenience API

 clutter/clutter-actor.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c
index 2e93854..4b18edc 100644
--- a/clutter/clutter-actor.c
+++ b/clutter/clutter-actor.c
@@ -293,7 +293,8 @@
  * clutter_timeline_set_duration (CLUTTER_TIMELINE (transition), 3000);
  * clutter_timeline_set_repeat_count (CLUTTER_TIMELINE (transition), 2);
  * clutter_timeline_set_auto_reverse (CLUTTER_TIMELINE (transition), TRUE);
- * clutter_transition_set_interval (transition, clutter_interval_new (G_TYPE_UINT, 255, 0));
+ * clutter_transition_set_from (transition, G_TYPE_UINT, 255);
+ * clutter_transition_set_to (transition, G_TYPE_UINT, 0);
  *
  * clutter_actor_add_transition (actor, "animate-opacity", transition);
  *     </programlisting></informalexample>
@@ -316,8 +317,8 @@
  * transition = clutter_property_transition_new ("opacity");
  *
  * /&ast; we want to animate the opacity between 0 and 255 &ast;/
- * internal = clutter_interval_new (G_TYPE_UINT, 0, 255);
- * clutter_transition_set_interval (transition, interval);
+ * clutter_transition_set_from (transition, G_TYPE_UINT, 0);
+ * clutter_transition_set_to (transition, G_TYPE_UINT, 255);
  *
  * /&ast; over a one second duration, running an infinite amount of times &ast;/
  * clutter_timeline_set_duration (CLUTTER_TIMELINE (transition), 1000);



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