summaryrefslogtreecommitdiff
path: root/gtk/gtklayout.c
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-09-09 15:35:58 +0200
committerJavier Jardón <jjardon@gnome.org>2010-09-13 21:26:01 +0200
commit9e81022bf6b7a5c25584b9eeea360cdf38cd6949 (patch)
tree3b2d02c989bb9042087b384b8637d19dc9e807e2 /gtk/gtklayout.c
parent153bfacde0d9c7a533c0936f3078db58cf672aac (diff)
downloadgtk+-9e81022bf6b7a5c25584b9eeea360cdf38cd6949.tar.gz
Use gtk_size_request_get_size() instead deprecated gtk_widget_get_child_requisition()
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=629177
Diffstat (limited to 'gtk/gtklayout.c')
-rw-r--r--gtk/gtklayout.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/gtk/gtklayout.c b/gtk/gtklayout.c
index fab1875673..822d1ecc9e 100644
--- a/gtk/gtklayout.c
+++ b/gtk/gtklayout.c
@@ -29,9 +29,13 @@
*/
#include "config.h"
-#include "gdkconfig.h"
#include "gtklayout.h"
+
+#include "gdkconfig.h"
+
+#include "gtksizerequest.h"
+
#include "gtkprivate.h"
#include "gtkintl.h"
#include "gtkmarshalers.h"
@@ -1124,7 +1128,9 @@ gtk_layout_allocate_child (GtkLayout *layout,
allocation.x = child->x;
allocation.y = child->y;
- gtk_widget_get_child_requisition (child->widget, &requisition);
+
+ gtk_size_request_get_size (GTK_SIZE_REQUEST (child->widget),
+ &requisition, NULL);
allocation.width = requisition.width;
allocation.height = requisition.height;