From 9e81022bf6b7a5c25584b9eeea360cdf38cd6949 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jard=C3=B3n?= Date: Thu, 9 Sep 2010 15:35:58 +0200 Subject: Use gtk_size_request_get_size() instead deprecated gtk_widget_get_child_requisition() Fixes https://bugzilla.gnome.org/show_bug.cgi?id=629177 --- gtk/gtktextlayout.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gtk/gtktextlayout.c') diff --git a/gtk/gtktextlayout.c b/gtk/gtktextlayout.c index 74b3dd3d6b..929810e6a4 100644 --- a/gtk/gtktextlayout.c +++ b/gtk/gtktextlayout.c @@ -1614,8 +1614,9 @@ add_child_attrs (GtkTextLayout *layout, /* Found it */ GtkRequisition req; - gtk_widget_get_child_requisition (child, &req); - + gtk_size_request_get_size (GTK_SIZE_REQUEST (child), + &req, NULL); + width = req.width; height = req.height; -- cgit v1.2.1