From fa9be0ba738d16a0b2330ad329c2484c357be70b Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 15 Mar 2012 17:42:42 +0000 Subject: [PATCH] interactive/texture-async: Use implicit animations --- tests/interactive/test-texture-async.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/interactive/test-texture-async.c b/tests/interactive/test-texture-async.c index ad04a8980..04377030f 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;