From 0b0d4e12397f425b075e449c38dc9777f75ab3d6 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Wed, 25 May 2011 16:22:31 +0100 Subject: [PATCH] test-binding-pool: Remove usage of deprecated get_gid() Use the actor name instead of a random, internal numeric id. --- tests/interactive/test-binding-pool.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/interactive/test-binding-pool.c b/tests/interactive/test-binding-pool.c index b73b18c90..616a93dca 100644 --- a/tests/interactive/test-binding-pool.c +++ b/tests/interactive/test-binding-pool.c @@ -238,7 +238,7 @@ static void on_key_group_activate (KeyGroup *group, ClutterActor *child) { - g_print ("Child '%d' activated!\n", clutter_actor_get_gid (child)); + g_print ("Child '%s' activated!\n", clutter_actor_get_name (child)); } G_MODULE_EXPORT int @@ -262,6 +262,7 @@ test_binding_pool_main (int argc, char *argv[]) clutter_container_add (CLUTTER_CONTAINER (key_group), g_object_new (CLUTTER_TYPE_RECTANGLE, "color", CLUTTER_COLOR_Red, + "name", "Red Rectangle", "width", 50.0, "height", 50.0, "x", 0.0, @@ -269,6 +270,7 @@ test_binding_pool_main (int argc, char *argv[]) NULL), g_object_new (CLUTTER_TYPE_RECTANGLE, "color", CLUTTER_COLOR_Green, + "name", "Green Rectangle", "width", 50.0, "height", 50.0, "x", 75.0, @@ -276,6 +278,7 @@ test_binding_pool_main (int argc, char *argv[]) NULL), g_object_new (CLUTTER_TYPE_RECTANGLE, "color", CLUTTER_COLOR_Blue, + "name", "Blue Rectangle", "width", 50.0, "height", 50.0, "x", 150.0,