From 39716462e627fbfbcc77325043e7b7a0d671987a Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Wed, 10 Feb 2016 09:35:22 -0800 Subject: [PATCH] avoid deprecated gtk_widget_size_request() --- src/gtk/nativewin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gtk/nativewin.cpp b/src/gtk/nativewin.cpp index 8103ef4346..11f266c0a4 100644 --- a/src/gtk/nativewin.cpp +++ b/src/gtk/nativewin.cpp @@ -65,7 +65,7 @@ wxNativeWindow::Create(wxWindow* parent, // Ensure that the best (and minimal) size is set to fully display the // widget. GtkRequisition req; - gtk_widget_size_request(widget, &req); + gtk_widget_get_preferred_size(widget, NULL, &req); SetInitialSize(wxSize(req.width, req.height)); return true;