[clutter] interactive/texture-async: Use implicit animations
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] interactive/texture-async: Use implicit animations
- Date: Thu, 15 Mar 2012 17:43:07 +0000 (UTC)
commit fa9be0ba738d16a0b2330ad329c2484c357be70b
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Thu Mar 15 17:42:42 2012 +0000
interactive/texture-async: Use implicit animations
tests/interactive/test-texture-async.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/tests/interactive/test-texture-async.c b/tests/interactive/test-texture-async.c
index ad04a89..0437703 100644
--- a/tests/interactive/test-texture-async.c
+++ b/tests/interactive/test-texture-async.c
@@ -92,6 +92,8 @@ gboolean task (gpointer user_data)
for (i = 0; i < 3; i++)
{
clutter_actor_set_position (image[i], 50 + i * 100, 0 + i * 50);
+ clutter_actor_set_depth (image[i], -2500);
+
clone[i] = clutter_clone_new (image[i]);
g_signal_connect (image[i], "size-change",
G_CALLBACK (size_change_cb), clone[i]);
@@ -101,10 +103,10 @@ gboolean task (gpointer user_data)
for (i = 0; i < 3; i++)
{
- clutter_actor_set_depth (image[i], -2500);
- clutter_actor_animate (image[i], CLUTTER_LINEAR, 5000,
- "depth", 0.0,
- NULL);
+ clutter_actor_save_easing_state (image[i]);
+ clutter_actor_set_easing_duration (image[i], 5000);
+ clutter_actor_set_depth (image[i], 0);
+ clutter_actor_restore_easing_state (image[i]);
}
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]