[clutter] animation: Use Animatable.interpolate_value()



commit 677df4497554ca1bbf1b461fe6eb5781d66a0581
Author: Emmanuele Bassi <ebassi linux intel com>
Date:   Fri Jul 15 14:30:39 2011 +0100

    animation: Use Animatable.interpolate_value()
    
    And stop using the deprecated animate_property() method.

 clutter/clutter-animation.c |   14 ++++----------
 1 files changed, 4 insertions(+), 10 deletions(-)
---
diff --git a/clutter/clutter-animation.c b/clutter/clutter-animation.c
index 80c5bc8..ec3c8e8 100644
--- a/clutter/clutter-animation.c
+++ b/clutter/clutter-animation.c
@@ -1104,16 +1104,10 @@ on_alpha_notify (GObject          *gobject,
 
       if (is_animatable)
         {
-          const GValue *initial, *final;
-
-          initial = clutter_interval_peek_initial_value (interval);
-          final   = clutter_interval_peek_final_value (interval);
-
-          apply = clutter_animatable_animate_property (animatable, animation,
-                                                       p_name,
-                                                       initial, final,
-                                                       alpha_value,
-                                                       &value);
+          apply = clutter_animatable_interpolate_value (animatable, p_name,
+                                                        interval,
+                                                        alpha_value,
+                                                        &value);
         }
       else
         {



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