allow wxPopupWindow get the key events (patch 713269)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-07-10 09:55:13 +00:00
parent 7ed43a6c7e
commit 654070ca23
3 changed files with 17 additions and 17 deletions

View File

@@ -151,8 +151,6 @@ IMPLEMENT_DYNAMIC_CLASS(wxPopupWindow, wxWindow)
wxPopupWindow::~wxPopupWindow()
{
if (GTK_WIDGET_HAS_GRAB(m_widget))
gtk_grab_remove( m_widget );
}
bool wxPopupWindow::Create( wxWindow *parent, int style )
@@ -349,14 +347,8 @@ bool wxPopupWindow::Show( bool show )
GtkOnSize( m_x, m_y, m_width, m_height );
}
if (!show)
gtk_grab_remove( m_widget );
bool ret = wxWindow::Show( show );
if (show)
gtk_grab_add( m_widget );
return ret;
}