mirror of
https://github.com/brl/mutter.git
synced 2024-11-12 17:27:03 -05:00
examples/layout-manager: Remove unnecessary easing state save
The actors in the layout are already set up with a non-default easing state, we can use that.
This commit is contained in:
parent
7f5b68eed3
commit
c11c875762
@ -318,9 +318,7 @@ static gboolean
|
||||
on_enter (ClutterActor *rect,
|
||||
ClutterEvent *event)
|
||||
{
|
||||
clutter_actor_save_easing_state (rect);
|
||||
clutter_actor_set_scale (rect, 1.2, 1.2);
|
||||
clutter_actor_restore_easing_state (rect);
|
||||
|
||||
return CLUTTER_EVENT_STOP;
|
||||
}
|
||||
@ -329,9 +327,7 @@ static gboolean
|
||||
on_leave (ClutterActor *rect,
|
||||
ClutterEvent *event)
|
||||
{
|
||||
clutter_actor_save_easing_state (rect);
|
||||
clutter_actor_set_scale (rect, 1.0, 1.0);
|
||||
clutter_actor_restore_easing_state (rect);
|
||||
|
||||
return CLUTTER_EVENT_STOP;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user