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:
Emmanuele Bassi 2013-03-08 15:57:26 +00:00
parent 7f5b68eed3
commit c11c875762

View File

@ -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;
}