From 0f7dab15d85419d7ab968ae404140eef031755a9 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Wed, 28 Mar 2012 11:49:53 +0100 Subject: [PATCH] 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 file changed, 4 insertions(+) diff --git a/tests/interactive/test-transitions.c b/tests/interactive/test-transitions.c index 194a6bdff..460691366 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;