[clutter/wip/transitions: 2/9] docs: Use the Transition convenience API
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/wip/transitions: 2/9] docs: Use the Transition convenience API
- Date: Wed, 11 Apr 2012 16:49:54 +0000 (UTC)
commit ab6b882fb480aa13cc7472e0b56f55788a61c655
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");
*
* /* we want to animate the opacity between 0 and 255 */
- * 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);
*
* /* over a one second duration, running an infinite amount of times */
* clutter_timeline_set_duration (CLUTTER_TIMELINE (transition), 1000);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]