interactive/transitions: Add missing easing state save/restore
authorEmmanuele Bassi <ebassi@linux.intel.com>
Wed, 28 Mar 2012 10:49:53 +0000 (11:49 +0100)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Wed, 28 Mar 2012 10:49:53 +0000 (11:49 +0100)
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

index 194a6bd..4606913 100644 (file)
@@ -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;