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:
@ -1033,9 +1033,6 @@ gtk_table_size_request_init (GtkTable *table)
|
|||||||
child = children->data;
|
child = children->data;
|
||||||
children = children->next;
|
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)
|
if (child->left_attach == (child->right_attach - 1) && child->xexpand)
|
||||||
priv->cols[child->left_attach].expand = TRUE;
|
priv->cols[child->left_attach].expand = TRUE;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user