]> git.saurik.com Git - wxWidgets.git/commitdiff
Need to send an event in the wxCP_NO_TLW_RESIZE case too so the user
authorRobin Dunn <robin@alldunn.com>
Mon, 9 Jul 2007 19:49:35 +0000 (19:49 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 9 Jul 2007 19:49:35 +0000 (19:49 +0000)
code knows when to update the layout

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47273 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/collpane.cpp

index 9dab8612470686772b0b2c05ae49baebb5af447f..e616adb537bd9f399c12878c7adef6652d8c30a6 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;
     }