mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 12:02:04 +00:00
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.
This commit is contained in:
parent
3f877a3d71
commit
24a451b388
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user