mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 23:10:22 +00:00
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:
parent
8e5c7ac028
commit
d65ba7cf97
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user