[clutter/clutter-1.10] interactive/transitions: Add missing easing state save/restore



commit acd630f49c7bcb639f2fcc24a26ee0085e1ca9aa
Author: Emmanuele Bassi <ebassi linux intel com>
Date:   Wed Mar 28 11:49:53 2012 +0100

    interactive/transitions: Add missing easing state save/restore
    
    The test hasn't been updated after commit 229241b8, and was trying to
    change the easing state without creating one.

 tests/interactive/test-transitions.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/tests/interactive/test-transitions.c b/tests/interactive/test-transitions.c
index 194a6bd..4606913 100644
--- a/tests/interactive/test-transitions.c
+++ b/tests/interactive/test-transitions.c
@@ -81,11 +81,15 @@ on_button_press (ClutterActor       *actor,
 
       cur_mode = easing_modes[current_mode].mode;
 
+      clutter_actor_save_easing_state (rectangle);
+
       /* tween the actor using the current easing mode */
       clutter_actor_set_easing_mode (rectangle, cur_mode);
       clutter_actor_set_easing_duration (rectangle, duration * 1000);
 
       clutter_actor_set_position (rectangle, event->x, event->y);
+
+      clutter_actor_restore_easing_state (rectangle);
     }
 
   return TRUE;



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