From 4bc4c604e926b07af9ef4c02fd5f000fc939259b Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 25 Feb 2010 12:45:02 +0000 Subject: [PATCH] box: Let pack_at() create the ChildMeta, if any A sub-class of ClutterBox might add ChildMeta support, and since pack_at() does not go through clutter_container_add_actor(), we need to manually call the create_child_meta() ourselves. --- clutter/clutter-box.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/clutter/clutter-box.c b/clutter/clutter-box.c index 96436f3..e977926 100644 --- a/clutter/clutter-box.c +++ b/clutter/clutter-box.c @@ -920,6 +920,11 @@ clutter_box_pack_at (ClutterBox *box, clutter_actor_set_parent (actor, CLUTTER_ACTOR (box)); clutter_actor_queue_relayout (actor); + /* we need to explicitly call this, because we're not going through + * the default code paths provided by clutter_container_add() + */ + clutter_container_create_child_meta (CLUTTER_CONTAINER (box), actor); + g_signal_emit_by_name (box, "actor-added", actor); if (first_property == NULL || *first_property == '\0') -- 2.7.4