avoid deprecated gtk_widget_size_request()

This commit is contained in:
Paul Cornett
2016-02-10 09:35:22 -08:00
parent 2bb8367cba
commit 39716462e6

View File

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