X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9dc44eff0235c5f30940f32ccc6d9d82a236e7d2..88932ec82d048d006cdc81bd309f5e59aee799ac:/src/gtk/collpane.cpp diff --git a/src/gtk/collpane.cpp b/src/gtk/collpane.cpp index cfda20564c..a8fb57bf25 100644 --- a/src/gtk/collpane.cpp +++ b/src/gtk/collpane.cpp @@ -223,8 +223,7 @@ wxSize wxCollapsiblePane::DoGetBestSize() const GtkRequisition req; #ifdef __WXGTK3__ - gtk_widget_get_preferred_width(m_widget, NULL, &req.width); - gtk_widget_get_preferred_height_for_width(m_widget, req.width, NULL, &req.height); + gtk_widget_get_preferred_size(m_widget, NULL, &req); #else GTK_WIDGET_GET_CLASS(m_widget)->size_request(m_widget, &req); #endif