mirror of
https://github.com/brl/mutter.git
synced 2025-02-23 16:34:10 +00:00
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.
This commit is contained in:
parent
543e2d3f06
commit
4bc4c604e9
@ -920,6 +920,11 @@ clutter_box_pack_at (ClutterBox *box,
|
|||||||
clutter_actor_set_parent (actor, CLUTTER_ACTOR (box));
|
clutter_actor_set_parent (actor, CLUTTER_ACTOR (box));
|
||||||
clutter_actor_queue_relayout (actor);
|
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);
|
g_signal_emit_by_name (box, "actor-added", actor);
|
||||||
|
|
||||||
if (first_property == NULL || *first_property == '\0')
|
if (first_property == NULL || *first_property == '\0')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user