sizegroup: Remove special case before loop

The loop actually does the right thing already. There's no need to
complicate things.
This commit is contained in:
Benjamin Otte 2015-09-15 22:11:35 +02:00
parent 8fea3b02c9
commit dd0e5cfce6

View File

@ -206,20 +206,6 @@ _gtk_size_group_get_widget_peers (GtkWidget *for_widget,
static void
real_queue_resize (GtkWidget *widget)
{
GtkWidget *container;
_gtk_widget_set_alloc_needed (widget, TRUE);
_gtk_size_request_cache_clear (_gtk_widget_peek_request_cache (widget));
container = _gtk_widget_get_parent (widget);
if (!container &&
_gtk_widget_is_toplevel (widget) && GTK_IS_CONTAINER (widget))
container = widget;
if (container)
{
widget = container;
do
{
_gtk_widget_set_alloc_needed (widget, TRUE);
@ -236,7 +222,6 @@ real_queue_resize (GtkWidget *widget)
widget = gtk_widget_get_parent (widget);
}
while (widget);
}
}
static void