]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/collpane.cpp
Add wxControlWithItems::SendSelectionChangedEvent() helper.
[wxWidgets.git] / src / gtk / collpane.cpp
index cfda20564c8a45a8e893d1e42b28be474cf1aaab..a8fb57bf2512fca1bf2a73e4e817a4e94ebf6da5 100644 (file)
@@ -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