Use gtk_size_request_get_size() instead deprecated gtk_widget_get_child_requisition()

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=629177
This commit is contained in:
Javier Jardón
2010-09-09 15:35:58 +02:00
parent 153bfacde0
commit 9e81022bf6
24 changed files with 170 additions and 80 deletions

View File

@ -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;