[clutter/wip/apocalypses/apocalypse-1: 28/44] conform/layout: Remove last Container.add_actor() usage



commit 7da16d904f76720bdc6c5920c7dce96f5df606f9
Author: Emmanuele Bassi <ebassi linux intel com>
Date:   Fri Dec 2 15:38:25 2011 +0000

    conform/layout: Remove last Container.add_actor() usage
    
    Use clutter_actor_add_child(), now that Stage falls back to the default
    implementation of Container provided by the Actor class.

 tests/conform/test-actor-layout.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/conform/test-actor-layout.c b/tests/conform/test-actor-layout.c
index f749eca..74b83e3 100644
--- a/tests/conform/test-actor-layout.c
+++ b/tests/conform/test-actor-layout.c
@@ -213,7 +213,7 @@ basic_layout (TestConformSimpleFixture *fixture,
   TestState *state;
 
   vase = clutter_box_new (clutter_flow_layout_new (CLUTTER_FLOW_HORIZONTAL));
-  clutter_container_add_actor (CLUTTER_CONTAINER (stage), vase);
+  clutter_actor_add_child (stage, vase);
 
   flower[0] = clutter_rectangle_new_with_color (CLUTTER_COLOR_Red);
   clutter_actor_set_size (flower[0], 100, 100);
@@ -253,7 +253,7 @@ margin_layout (TestConformSimpleFixture *fixture,
   TestState *state;
 
   vase = clutter_box_new (clutter_flow_layout_new (CLUTTER_FLOW_HORIZONTAL));
-  clutter_container_add_actor (CLUTTER_CONTAINER (stage), vase);
+  clutter_actor_add_child (stage, vase);
 
   flower[0] = clutter_rectangle_new_with_color (CLUTTER_COLOR_Red);
   clutter_actor_set_size (flower[0], 100, 100);



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