mirror of
https://github.com/brl/mutter.git
synced 2025-07-29 21:18:04 +00: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:
@@ -318,9 +318,7 @@ static gboolean
|
|||||||
on_enter (ClutterActor *rect,
|
on_enter (ClutterActor *rect,
|
||||||
ClutterEvent *event)
|
ClutterEvent *event)
|
||||||
{
|
{
|
||||||
clutter_actor_save_easing_state (rect);
|
|
||||||
clutter_actor_set_scale (rect, 1.2, 1.2);
|
clutter_actor_set_scale (rect, 1.2, 1.2);
|
||||||
clutter_actor_restore_easing_state (rect);
|
|
||||||
|
|
||||||
return CLUTTER_EVENT_STOP;
|
return CLUTTER_EVENT_STOP;
|
||||||
}
|
}
|
||||||
@@ -329,9 +327,7 @@ static gboolean
|
|||||||
on_leave (ClutterActor *rect,
|
on_leave (ClutterActor *rect,
|
||||||
ClutterEvent *event)
|
ClutterEvent *event)
|
||||||
{
|
{
|
||||||
clutter_actor_save_easing_state (rect);
|
|
||||||
clutter_actor_set_scale (rect, 1.0, 1.0);
|
clutter_actor_set_scale (rect, 1.0, 1.0);
|
||||||
clutter_actor_restore_easing_state (rect);
|
|
||||||
|
|
||||||
return CLUTTER_EVENT_STOP;
|
return CLUTTER_EVENT_STOP;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user