]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/popupcmn.cpp
Added reparenting helper classes to help apps to grab the windows
[wxWidgets.git] / src / common / popupcmn.cpp
index db3250b429b5df64b2ab6fba369a635abfa3155b..b4ec9cf52622c5166900734e5dc1afb1cbc5f9d2 100644 (file)
@@ -34,6 +34,7 @@
 
 #ifndef WX_PRECOMP
     #include "wx/combobox.h"        // wxComboControl
+    #include "wx/log.h"
 #endif //WX_PRECOMP
 
 #ifdef __WXUNIVERSAL__
@@ -256,13 +257,13 @@ void wxPopupTransientWindow::Popup(wxWindow *winFocus)
     // otherwise everything else breaks down
     m_focus = FindFocus();
     if ( m_focus )
-#endif // __WXMSW__
     {
         delete m_handlerFocus;
         m_handlerFocus = new wxPopupFocusHandler(this);
 
         m_focus->PushEventHandler(m_handlerFocus);
     }
+#endif // __WXMSW__
 }
 
 void wxPopupTransientWindow::Dismiss()
@@ -347,7 +348,7 @@ void wxPopupWindowHandler::OnLeftDown(wxMouseEvent& event)
     {
         return;
     }
-
+    
     wxPoint pos = event.GetPosition();
 
     // scrollbar on which the click occured
@@ -427,8 +428,6 @@ void wxPopupFocusHandler::OnKillFocus(wxFocusEvent& event)
         win = win->GetParent();
     }
     
-    printf( "Dismiss now.\n" );
-    
     m_popup->DismissAndNotify();
 }