box: Depth level changes should queue a relayout

ClutterBox is not ClutterGroup: a change in the level of an actor
through raise, lower or depth sorting must trigger a relayout.
This commit is contained in:
Emmanuele Bassi 2009-10-26 15:09:07 +00:00
parent 2cad7e24f0
commit a5a0171cb0

View File

@ -183,7 +183,7 @@ clutter_box_real_raise (ClutterContainer *container,
priv->children = g_list_insert (priv->children, actor, index_); priv->children = g_list_insert (priv->children, actor, index_);
} }
clutter_actor_queue_redraw (CLUTTER_ACTOR (container)); clutter_actor_queue_relayout (CLUTTER_ACTOR (container));
} }
static void static void
@ -204,7 +204,7 @@ clutter_box_real_lower (ClutterContainer *container,
priv->children = g_list_insert (priv->children, actor, index_); priv->children = g_list_insert (priv->children, actor, index_);
} }
clutter_actor_queue_redraw (CLUTTER_ACTOR (container)); clutter_actor_queue_relayout (CLUTTER_ACTOR (container));
} }
static void static void
@ -214,7 +214,7 @@ clutter_box_real_sort_depth_order (ClutterContainer *container)
priv->children = g_list_sort (priv->children, sort_by_depth); priv->children = g_list_sort (priv->children, sort_by_depth);
clutter_actor_queue_redraw (CLUTTER_ACTOR (container)); clutter_actor_queue_relayout (CLUTTER_ACTOR (container));
} }
static void static void