X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e8375af8ff97a3649361b988a40b991a8cdaab09..92ab7bed7751a9a7461c9b30e0b3aba7a1d203b1:/src/gtk/collpane.cpp?ds=sidebyside diff --git a/src/gtk/collpane.cpp b/src/gtk/collpane.cpp index 9dab861247..b5fd6511b5 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; } @@ -102,7 +106,7 @@ static void gtk_collapsiblepane_expanded_callback (GObject *object, if ( top && top->GetSizer() ) { // 2) recalculate minimal size of the top window - wxSize sz = top->GetSizer()->CalcMin(); + sz = top->GetSizer()->CalcMin(); if (top->m_mainWidget) {