box: Let pack_at() create the ChildMeta, if any
authorEmmanuele Bassi <ebassi@linux.intel.com>
Thu, 25 Feb 2010 12:45:02 +0000 (12:45 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Thu, 25 Feb 2010 12:55:12 +0000 (12:55 +0000)
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

index 96436f3..e977926 100644 (file)
@@ -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')