[clutter/clutter-1.14] examples/layout-manager: Remove unnecessary easing state save
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/clutter-1.14] examples/layout-manager: Remove unnecessary easing state save
- Date: Wed, 13 Mar 2013 19:11:01 +0000 (UTC)
commit 09f4d5dbc410b71249213a158357f7175ab64f03
Author: Emmanuele Bassi <ebassi gnome org>
Date: Fri Mar 8 15:57:26 2013 +0000
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.
examples/layout-manager.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/examples/layout-manager.c b/examples/layout-manager.c
index 47195ce..1b76844 100644
--- a/examples/layout-manager.c
+++ b/examples/layout-manager.c
@@ -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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]