]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/window_osx.cpp
fixing multilib build
[wxWidgets.git] / src / osx / window_osx.cpp
index 0eeb0df5269edd1347ae9904eaf739c32698c2b7..20af778038fda6290717f1d3e6928720880ce49d 100644 (file)
@@ -1061,10 +1061,16 @@ bool wxWindowMac::Show(bool show)
     if ( m_peer )
         m_peer->SetVisibility( show ) ;
 
-    wxShowEvent eventShow(GetId(), show);
-    eventShow.SetEventObject(this);
+#ifdef __WXOSX_IPHONE__
+    // only when there's no native event support 
+    if ( !IsTopLevel() )
+#endif
+    {
+        wxShowEvent eventShow(GetId(), show);
+        eventShow.SetEventObject(this);
     
-    HandleWindowEvent(eventShow);
+        HandleWindowEvent(eventShow);
+    }
     
     return true;
 }