X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/91af089567c5e13a408f1c529f6830d12cdc6c4e..81f6ea4a29eb815dbed0adea369efdc8fece0269:/src/gtk/dialog.cpp diff --git a/src/gtk/dialog.cpp b/src/gtk/dialog.cpp index 115965adc4..c2dee417c5 100644 --- a/src/gtk/dialog.cpp +++ b/src/gtk/dialog.cpp @@ -7,10 +7,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma implementation "dialog.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -18,6 +14,7 @@ #include "wx/frame.h" #include "wx/app.h" #include "wx/cursor.h" +#include "wx/evtloop.h" #include #include @@ -212,7 +209,9 @@ int wxDialog::ShowModal() g_openDialogs++; gtk_grab_add( m_widget ); - gtk_main(); + + wxEventLoop().Run(); + gtk_grab_remove( m_widget ); g_openDialogs--;