diff options
author | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2010-10-08 22:25:16 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2010-10-08 22:33:21 +0900 |
commit | c1e9f4a79895b83a6b27e220ee4ca560875b1986 (patch) | |
tree | f63ad37ef59b0b584edce169e1045aef465fe5e6 /gtk/gtklayout.c | |
parent | 2e98e37fe49af92b330a1d96cee97108c77b6da9 (diff) | |
download | gtk+-c1e9f4a79895b83a6b27e220ee4ca560875b1986.tar.gz |
Removed needless size-requesting of children (child sizes are ignored at request time).
Diffstat (limited to 'gtk/gtklayout.c')
-rw-r--r-- | gtk/gtklayout.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/gtk/gtklayout.c b/gtk/gtklayout.c index b1a7e96abb..930e98d272 100644 --- a/gtk/gtklayout.c +++ b/gtk/gtklayout.c @@ -975,24 +975,8 @@ static void gtk_layout_size_request (GtkWidget *widget, GtkRequisition *requisition) { - GtkLayout *layout = GTK_LAYOUT (widget); - GtkLayoutPrivate *priv = layout->priv; - GList *tmp_list; - requisition->width = 0; requisition->height = 0; - - tmp_list = priv->children; - - while (tmp_list) - { - GtkLayoutChild *child = tmp_list->data; - GtkRequisition child_requisition; - - tmp_list = tmp_list->next; - - gtk_widget_get_preferred_size (child->widget, &child_requisition, NULL); - } } static void |