[gtk+] Removed needless initial size request of children
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Removed needless initial size request of children
- Date: Fri, 8 Oct 2010 13:41:03 +0000 (UTC)
commit 480b9f6b1131c49a7c21b87a543dadfa936993e8
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Fri Oct 8 22:26:01 2010 +0900
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 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtktable.c b/gtk/gtktable.c
index 5bdbcfa..c8fb402 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]