]> Pileus Git - ~andy/gtk/commitdiff
Removed needless initial size request of children
authorTristan Van Berkom <tristan.van.berkom@gmail.com>
Fri, 8 Oct 2010 13:26:01 +0000 (22:26 +0900)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Fri, 8 Oct 2010 13:33:21 +0000 (22:33 +0900)
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

index 5bdbcfabc9500f090e2f6fe3c19bd68ce130a4dd..c8fb4027ac8b915d7e1dd020f4cb59b6abbb0dba 100644 (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;