diff options
Diffstat (limited to 'gtk/gtklayout.c')
-rw-r--r-- | gtk/gtklayout.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gtk/gtklayout.c b/gtk/gtklayout.c index c16d345a03..9a0943bdd0 100644 --- a/gtk/gtklayout.c +++ b/gtk/gtklayout.c @@ -34,8 +34,6 @@ #include "gdkconfig.h" -#include "gtksizerequest.h" - #include "gtkprivate.h" #include "gtkintl.h" #include "gtkmarshalers.h" @@ -993,8 +991,7 @@ gtk_layout_size_request (GtkWidget *widget, tmp_list = tmp_list->next; - gtk_size_request_get_size (GTK_SIZE_REQUEST (child->widget), - &child_requisition, NULL); + gtk_widget_get_preferred_size (child->widget, &child_requisition, NULL); } } @@ -1126,8 +1123,7 @@ gtk_layout_allocate_child (GtkLayout *layout, allocation.x = child->x; allocation.y = child->y; - gtk_size_request_get_size (GTK_SIZE_REQUEST (child->widget), - &requisition, NULL); + gtk_widget_get_preferred_size (child->widget, &requisition, NULL); allocation.width = requisition.width; allocation.height = requisition.height; |