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:
@@ -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--;
|
||||
|
||||
|
Reference in New Issue
Block a user