]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/collpane.cpp
missing commit
[wxWidgets.git] / src / gtk / collpane.cpp
index cfda20564c8a45a8e893d1e42b28be474cf1aaab..26539041ab007f593465b96d54857e1ccd83ffe9 100644 (file)
@@ -33,7 +33,7 @@
 
 const char wxCollapsiblePaneNameStr[] = "collapsiblePane";
 
-wxDEFINE_EVENT( wxEVT_COMMAND_COLLPANE_CHANGED, wxCollapsiblePaneEvent );
+wxDEFINE_EVENT( wxEVT_COLLAPSIBLEPANE_CHANGED, wxCollapsiblePaneEvent );
 
 IMPLEMENT_DYNAMIC_CLASS(wxCollapsiblePaneEvent, wxCommandEvent)
 
@@ -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