// 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"
#include "wx/frame.h"
#include "wx/app.h"
#include "wx/cursor.h"
+#include "wx/evtloop.h"
#include <gdk/gdk.h>
#include <gtk/gtk.h>
g_openDialogs++;
gtk_grab_add( m_widget );
- gtk_main();
+
+ wxEventLoop().Run();
+
gtk_grab_remove( m_widget );
g_openDialogs--;