[clutter/wip/optimizations-2: 13/13] examples/layout-manager: Remove unnecessary easing state save
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/wip/optimizations-2: 13/13] examples/layout-manager: Remove unnecessary easing state save
- Date: Sat, 9 Mar 2013 14:15:26 +0000 (UTC)
commit ba2ea4e8e5dc2088f168a7430fee8357fb797fc1
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]