Dislaying popup tip windows seems to work right now.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15766 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2002-06-06 19:35:51 +00:00
parent 0b74b736a6
commit ad9fb0334f
5 changed files with 38 additions and 15 deletions

View File

@@ -149,6 +149,12 @@ END_EVENT_TABLE()
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 )
{
m_needParent = FALSE;
@@ -342,9 +348,15 @@ 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;
}