[clutter] actor: Provide an initial easing state
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] actor: Provide an initial easing state
- Date: Mon, 11 Jun 2012 09:03:03 +0000 (UTC)
commit 9412b1a4c3b440168db659bd928c5cca943c0ff7
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Fri Jun 8 18:13:31 2012 +0100
actor: Provide an initial easing state
For 1.x, we still have a duration of 0 msecs, but we have a valid easing
state, so we can change the easing parameters without calling save and
restore.
clutter/clutter-actor.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c
index 231e4e9..d1e457c 100644
--- a/clutter/clutter-actor.c
+++ b/clutter/clutter-actor.c
@@ -5305,6 +5305,8 @@ clutter_actor_finalize (GObject *object)
priv->id,
g_type_name (G_OBJECT_TYPE (object)));
+ clutter_actor_restore_easing_state (CLUTTER_ACTOR (object));
+
_clutter_context_release_id (priv->id);
g_free (priv->name);
@@ -7434,6 +7436,9 @@ clutter_actor_init (ClutterActor *self)
* when building up a scene.
*/
priv->needs_compute_expand = FALSE;
+
+ clutter_actor_save_easing_state (self);
+ clutter_actor_set_easing_duration (self, 0);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]