mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
[layout] Bind the layout ChildMeta inside Box
The ClutterBox container actor should add and remove ChildMeta to each actor that has been added and removed to the list of children, respectively.
This commit is contained in:
parent
7051fe275d
commit
98474076a1
@ -70,6 +70,11 @@ clutter_box_real_add (ClutterContainer *container,
|
||||
sort_by_depth);
|
||||
|
||||
clutter_actor_set_parent (actor, CLUTTER_ACTOR (container));
|
||||
|
||||
clutter_layout_manager_add_child_meta (priv->manager,
|
||||
container,
|
||||
actor);
|
||||
|
||||
clutter_actor_queue_relayout (actor);
|
||||
|
||||
g_signal_emit_by_name (container, "actor-added", actor);
|
||||
@ -88,6 +93,10 @@ clutter_box_real_remove (ClutterContainer *container,
|
||||
priv->children = g_list_remove (priv->children, actor);
|
||||
clutter_actor_unparent (actor);
|
||||
|
||||
clutter_layout_manager_remove_child_meta (priv->manager,
|
||||
container,
|
||||
actor);
|
||||
|
||||
clutter_actor_queue_relayout (CLUTTER_ACTOR (container));
|
||||
|
||||
g_signal_emit_by_name (container, "actor-removed", actor);
|
||||
|
Loading…
Reference in New Issue
Block a user