X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b5f62a0b2db198609b45dec622a018dae37008e..350fffae72c078442d6d177d2071e62f2687df9f:/src/gtk1/popupwin.cpp diff --git a/src/gtk1/popupwin.cpp b/src/gtk1/popupwin.cpp index 236a69d036..ace707144e 100644 --- a/src/gtk1/popupwin.cpp +++ b/src/gtk1/popupwin.cpp @@ -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; }