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:
Tristan Van Berkom 2010-10-08 22:26:01 +09:00
parent c1e9f4a798
commit 480b9f6b11

View File

@ -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;