[clutter] test-binding-pool: Remove usage of deprecated get_gid()



commit 0b0d4e12397f425b075e449c38dc9777f75ab3d6
Author: Emmanuele Bassi <ebassi linux intel com>
Date:   Wed May 25 16:22:31 2011 +0100

    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 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/tests/interactive/test-binding-pool.c b/tests/interactive/test-binding-pool.c
index b73b18c..616a93d 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,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]