[gtk+] Removed needless size-requesting of children (child sizes are ignored at request time).
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Removed needless size-requesting of children (child sizes are ignored at request time).
- Date: Fri, 8 Oct 2010 13:40:58 +0000 (UTC)
commit c1e9f4a79895b83a6b27e220ee4ca560875b1986
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Fri Oct 8 22:25:16 2010 +0900
Removed needless size-requesting of children (child sizes are ignored at request time).
gtk/gtklayout.c | 16 ----------------
1 files changed, 0 insertions(+), 16 deletions(-)
---
diff --git a/gtk/gtklayout.c b/gtk/gtklayout.c
index b1a7e96..930e98d 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]