mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
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:
parent
f4af52ca7f
commit
0f7dab15d8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user