]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/carbon/popupwin.cpp
using ordinary Show for popup windows as on MSW which activates it as well, I'll...
[wxWidgets.git] / src / osx / carbon / popupwin.cpp
index b28aaba17d0ac15dc753bb2686cf52c39f8d77c6..82488c73ce0a174cb7b1e79e14459cb5b93fa25b 100644 (file)
@@ -1,12 +1,12 @@
 ///////////////////////////////////////////////////////////////////////////////
-// Name:        src/osx/popupwin.cpp
+// Name:        src/osx/carbon/popupwin.cpp
 // Purpose:     implements wxPopupWindow for wxMac
 // Author:      Stefan Csomor
 // Modified by:
 // Created:
 // RCS-ID:      $Id$
 // Copyright:   (c) 2006 Stefan Csomor
-// License:     wxWindows licence
+// Licence:     wxWindows licence
 ///////////////////////////////////////////////////////////////////////////////
 
 // ============================================================================
@@ -56,25 +56,4 @@ bool wxPopupWindow::Create(wxWindow *parent, int flags)
 
 }
 
-bool wxPopupWindow::Show(bool show)
-{
-    if ( !wxWindow::Show(show) )
-        return false;
-
-    if ( m_nowpeer && show)
-        m_nowpeer->ShowWithoutActivating();
-    else if ( m_nowpeer )
-        m_nowpeer->Show(false);
-
-    if ( show )
-    {
-        // because apps expect a size event to occur at this moment
-        wxSizeEvent event(GetSize() , m_windowId);
-        event.SetEventObject(this);
-        HandleWindowEvent(event);
-    }
-        
-    return true;
-}
-
 #endif // #if wxUSE_POPUPWIN