]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/collpane.cpp
Borland has only lfind
[wxWidgets.git] / src / gtk / collpane.cpp
index 9dab8612470686772b0b2c05ae49baebb5af447f..b5fd6511b5fee9a726c053e85096298444bbe860 100644 (file)
@@ -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)
         {