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

@ -443,8 +443,9 @@ viewport_set_hadjustment_values (GtkViewport *viewport,
if (child && gtk_widget_get_visible (child))
{
GtkRequisition child_requisition;
gtk_widget_get_child_requisition (child, &child_requisition);
gtk_size_request_get_size (GTK_SIZE_REQUEST (child),
&child_requisition, NULL);
hadjustment->upper = MAX (child_requisition.width, view_allocation.width);
}
else