]> git.saurik.com Git - wxWidgets.git/commitdiff
fix for shown TLW having m_isShown == false, #9909
authorPaul Cornett <paulcor@bullseye.com>
Thu, 27 Nov 2008 23:00:04 +0000 (23:00 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Thu, 27 Nov 2008 23:00:04 +0000 (23:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56986 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/toplevel.cpp

index 319887643f141e25e0176697880676a6652c5d81..708f0bc2b76b46dd7e24536cc68da22937d079ac 100644 (file)
@@ -335,9 +335,7 @@ gtk_frame_map_callback( GtkWidget*,
                         wxTopLevelWindow *win )
 {
     const bool wasIconized = win->IsIconized();
-
     win->SetIconizeState(false);
-
     if (wasIconized)
     {
         // Because GetClientSize() returns (0,0) when IsIconized() is true,
@@ -349,7 +347,13 @@ gtk_frame_map_callback( GtkWidget*,
         win->m_oldClientWidth = 0;
         gtk_widget_queue_resize(win->m_wxwindow);
     }
-
+    // it is possible for m_isShown to be false here, see bug #9909
+    if (win->wxWindowBase::Show(true))
+    {
+        wxShowEvent eventShow(win->GetId(), true);
+        eventShow.SetEventObject(win);
+        win->GetEventHandler()->ProcessEvent(eventShow);
+    }
     return false;
 }
 }