From 8a794a85337c01a21f88a02c84bd519ed511b6c6 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 13 Aug 2009 16:13:55 +0100 Subject: [PATCH] [docs] Fix the examples for animate() Update the examples to reference to existing easing modes and to make sure to use floating point values for floating point properties. --- clutter/clutter-animation.c | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/clutter/clutter-animation.c b/clutter/clutter-animation.c index c88ddb9cb..f007b7ac0 100644 --- a/clutter/clutter-animation.c +++ b/clutter/clutter-animation.c @@ -1802,8 +1802,8 @@ clutter_actor_animate_with_timeline (ClutterActor *actor, * * |[ * clutter_actor_animate (rectangle, CLUTTER_LINEAR, 250, - * "width", 100, - * "height", 100, + * "width", 100.0, + * "height", 100.0, * NULL); * ]| * @@ -1819,8 +1819,8 @@ clutter_actor_animate_with_timeline (ClutterActor *actor, * by the "fixed::" string, for instance: * * |[ - * clutter_actor_animate (actor, CLUTTER_EASE_IN, 100, - * "rotation-angle-z", 360, + * clutter_actor_animate (actor, CLUTTER_EASE_IN_SINE, 100, + * "rotation-angle-z", 360.0, * "fixed::rotation-center-z", &center, * NULL); * ]| @@ -1849,7 +1849,7 @@ clutter_actor_animate_with_timeline (ClutterActor *actor, * clutter_actor_hide (actor); * } * - * clutter_actor_animate (actor, CLUTTER_EASE_IN, 100, + * clutter_actor_animate (actor, CLUTTER_EASE_IN_CUBIC, 100, * "opacity", 0, * "signal::completed", on_animation_completed, actor, * NULL); @@ -1869,13 +1869,13 @@ clutter_actor_animate_with_timeline (ClutterActor *actor, * * |[ * clutter_actor_animate (actor, CLUTTER_LINEAR, 250, - * "width", 100, - * "height", 100, + * "width", 100.0, + * "height", 100.0, * NULL); * clutter_actor_animate (actor, CLUTTER_EASE_IN_CUBIC, 500, - * "x", 100, - * "y", 100, - * "width", 200, + * "x", 100.0, + * "y", 100.0, + * "width", 200.0, * NULL); * ]| * @@ -1883,10 +1883,10 @@ clutter_actor_animate_with_timeline (ClutterActor *actor, * * |[ * clutter_actor_animate (actor, CLUTTER_EASE_IN_CUBIC, 500, - * "x", 100, - * "y", 100, - * "width", 200, - * "height", 100, + * "x", 100.0, + * "y", 100.0, + * "width", 200.0, + * "height", 100.0, * NULL); * ]| * @@ -1907,15 +1907,15 @@ clutter_actor_animate_with_timeline (ClutterActor *actor, * ClutterActor *actor) * { * clutter_actor_animate (actor, CLUTTER_EASE_OUT_CUBIC, 250, - * "x", 500, - * "y", 500, + * "x", 500.0, + * "y", 500.0, * NULL); * } * * ... * animation = clutter_actor_animate (actor, CLUTTER_EASE_IN_CUBIC, 250, - * "x", 100, - * "y", 100, + * "x", 100.0, + * "y", 100.0, * NULL); * g_signal_connect (animation, "completed", * G_CALLBACK (on_animation_completed),