X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9dc44eff0235c5f30940f32ccc6d9d82a236e7d2..f7f8a13c0466725ffffc0cbe9f10da729c3423dd:/src/gtk/collpane.cpp diff --git a/src/gtk/collpane.cpp b/src/gtk/collpane.cpp index cfda20564c..ac2b928d80 100644 --- a/src/gtk/collpane.cpp +++ b/src/gtk/collpane.cpp @@ -4,7 +4,6 @@ // Author: Francesco Montorsi // Modified By: // Created: 8/10/2006 -// Id: $Id$ // Copyright: (c) Francesco Montorsi // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -33,7 +32,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 +222,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