use gtk_window_set_modal(TRUE/FALSE) instead of gtk_grab_add/remove() (part of patch 1472329)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39492 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-05-31 22:48:22 +00:00
parent 7a0a4c095f
commit f36630afc9

View File

@@ -210,11 +210,12 @@ int wxDialog::ShowModal()
g_openDialogs++;
gtk_grab_add( m_widget );
// NOTE: gtk_window_set_modal internally calls gtk_grab_add() !
gtk_window_set_modal(GTK_WINDOW(m_widget), TRUE);
wxEventLoop().Run();
gtk_grab_remove( m_widget );
gtk_window_set_modal(GTK_WINDOW(m_widget), FALSE);
g_openDialogs--;