From: John Darrington Date: Tue, 19 May 2015 15:09:54 +0000 (+0200) Subject: Gtk+3: Replace deprecated gtk_widget_size_request with gtk_widget_get_preferred_size X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbe7466c123844217a10214083e2f2d793af8dfd;p=pspp Gtk+3: Replace deprecated gtk_widget_size_request with gtk_widget_get_preferred_size --- diff --git a/src/ui/gui/psppire-buttonbox.c b/src/ui/gui/psppire-buttonbox.c index 893e5f29a4..ca3c4cd831 100644 --- a/src/ui/gui/psppire-buttonbox.c +++ b/src/ui/gui/psppire-buttonbox.c @@ -469,7 +469,7 @@ _psppire_button_box_child_requisition (GtkWidget *widget, { gboolean is_secondary = FALSE; nchildren += 1; - gtk_widget_size_request (child, &child_requisition); + gtk_widget_get_preferred_size (child, NULL, &child_requisition); if (child_requisition.width + ipad_w > needed_width) needed_width = child_requisition.width + ipad_w;