summaryrefslogtreecommitdiff
path: root/gtk/gtktable.c
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.van.berkom@gmail.com>2010-10-08 22:26:01 +0900
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2010-10-08 22:33:21 +0900
commit480b9f6b1131c49a7c21b87a543dadfa936993e8 (patch)
treec9cbb4431b4f2961fed50c0ee071b56c1eb9984b /gtk/gtktable.c
parentc1e9f4a79895b83a6b27e220ee4ca560875b1986 (diff)
downloadgtk+-480b9f6b1131c49a7c21b87a543dadfa936993e8.tar.gz
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.
Diffstat (limited to 'gtk/gtktable.c')
-rw-r--r--gtk/gtktable.c3
1 files changed, 0 insertions, 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;