mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-10-01 03:27:36 +00:00
Removed needless initial size request of children
Old code was probably doing size-request on all children initially, and then calling get_child_requisition() in other passes, now these are cached after the first request anyway.
This commit is contained in:
parent
c1e9f4a798
commit
480b9f6b11
@ -1033,9 +1033,6 @@ gtk_table_size_request_init (GtkTable *table)
|
||||
child = children->data;
|
||||
children = children->next;
|
||||
|
||||
if (gtk_widget_get_visible (child->widget))
|
||||
gtk_widget_get_preferred_size (child->widget, NULL, NULL);
|
||||
|
||||
if (child->left_attach == (child->right_attach - 1) && child->xexpand)
|
||||
priv->cols[child->left_attach].expand = TRUE;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user