diff --git a/gtk/gtksizegroup.c b/gtk/gtksizegroup.c index a0167ec064..091bcc9097 100644 --- a/gtk/gtksizegroup.c +++ b/gtk/gtksizegroup.c @@ -242,10 +242,12 @@ queue_resize_on_widget (GtkWidget *widget, GSList *widget_groups; GHashTableIter iter; gpointer current; + + if (widget == parent) + real_queue_resize (widget); if (widget == parent && !check_siblings) { - real_queue_resize (widget); parent = _gtk_widget_get_parent (parent); continue; } @@ -253,9 +255,6 @@ queue_resize_on_widget (GtkWidget *widget, widget_groups = _gtk_widget_get_sizegroups (parent); if (!widget_groups) { - if (widget == parent) - real_queue_resize (widget); - parent = _gtk_widget_get_parent (parent); continue; } @@ -269,8 +268,7 @@ queue_resize_on_widget (GtkWidget *widget, { if (current == parent) { - if (widget == parent) - real_queue_resize (parent); + /* do nothing */ } else if (current == widget) {