+#else
+ // GTK+ catches the activate events from the popup
+ // window, not the focus events from the child window
+ delete m_handlerFocus;
+ m_handlerFocus = new wxPopupFocusHandler(this);
+ PushEventHandler(m_handlerFocus);
+#endif // __WXMSW__
+
+}
+
+bool wxPopupTransientWindow::Show( bool show )
+{
+#ifdef __WXGTK__
+ if (!show)
+ gtk_grab_remove( m_widget );
+#endif
+
+ bool ret = wxPopupWindow::Show( show );
+
+#ifdef __WXGTK__
+ if (show)
+ gtk_grab_add( m_widget );
+#endif