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.
This commit is contained in:
Emmanuele Bassi 2012-03-28 11:49:53 +01:00
parent f4af52ca7f
commit 0f7dab15d8

View File

@ -81,11 +81,15 @@ on_button_press (ClutterActor *actor,
cur_mode = easing_modes[current_mode].mode; cur_mode = easing_modes[current_mode].mode;
clutter_actor_save_easing_state (rectangle);
/* tween the actor using the current easing mode */ /* tween the actor using the current easing mode */
clutter_actor_set_easing_mode (rectangle, cur_mode); clutter_actor_set_easing_mode (rectangle, cur_mode);
clutter_actor_set_easing_duration (rectangle, duration * 1000); clutter_actor_set_easing_duration (rectangle, duration * 1000);
clutter_actor_set_position (rectangle, event->x, event->y); clutter_actor_set_position (rectangle, event->x, event->y);
clutter_actor_restore_easing_state (rectangle);
} }
return TRUE; return TRUE;