widget: Queue resize on parent, not self

When setting the parent of a widget, queue_resize() on the widget will
be optimized away if the widget already had a resize queued.

Plus, we do not need to resize the widget as its size request is not
going to change.
This commit is contained in:
Benjamin Otte 2015-11-03 22:51:01 +01:00
parent 8e5c7ac028
commit d65ba7cf97

View File

@ -9649,7 +9649,7 @@ gtk_widget_set_parent (GtkWidget *widget,
_gtk_widget_get_mapped (priv->parent))
gtk_widget_map (widget);
gtk_widget_queue_resize (widget);
gtk_widget_queue_resize (priv->parent);
}
/* child may cause parent's expand to change, if the child is