From 480b9f6b1131c49a7c21b87a543dadfa936993e8 Mon Sep 17 00:00:00 2001 From: Tristan Van Berkom Date: Fri, 8 Oct 2010 22:26:01 +0900 Subject: [PATCH] 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. --- gtk/gtktable.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/gtk/gtktable.c b/gtk/gtktable.c index 5bdbcfabc9..c8fb4027ac 100644 --- a/gtk/gtktable.c +++ b/gtk/gtktable.c @@ -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;