X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4c79f9c1606102f14dcb8ac1f025d792c8dead53..c4e43bea7b24f7b7f58e3f87786490cd81abf0a7:/src/gtk/collpane.cpp?ds=sidebyside diff --git a/src/gtk/collpane.cpp b/src/gtk/collpane.cpp index 93b0be56e1..e616adb537 100644 --- a/src/gtk/collpane.cpp +++ b/src/gtk/collpane.cpp @@ -93,6 +93,10 @@ static void gtk_collapsiblepane_expanded_callback (GObject *object, if (p->HasFlag(wxCP_NO_TLW_RESIZE)) { + // fire an event + wxCollapsiblePaneEvent ev(p, p->GetId(), p->IsCollapsed()); + p->GetEventHandler()->ProcessEvent(ev); + // the user asked to explicitely handle the resizing itself... return; } @@ -198,8 +202,6 @@ bool wxCollapsiblePane::Create(wxWindow *parent, return wxGenericCollapsiblePane::Create(parent, id, label, pos, size, style, val, name); - m_needParent = true; - m_acceptsFocus = true; m_bIgnoreNextChange = false; if ( !PreCreation( parent, pos, size ) || @@ -226,7 +228,7 @@ bool wxCollapsiblePane::Create(wxWindow *parent, m_pPane = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL|wxNO_BORDER); - gtk_widget_show( GTK_WIDGET(m_widget) ); + gtk_widget_show(m_widget); m_parent->DoAddChild( this ); PostCreation(size);