]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/dialog.cpp
don't reserve space in the header for the column image if there is none (patch 1225522)
[wxWidgets.git] / src / gtk1 / dialog.cpp
index 115965adc4bd380586589c531dbcd68b5818f197..17df0e50d03676b7e3adad0230673fe1c7f0a3ad 100644 (file)
@@ -18,6 +18,7 @@
 #include "wx/frame.h"
 #include "wx/app.h"
 #include "wx/cursor.h"
+#include "wx/evtloop.h"
 
 #include <gdk/gdk.h>
 #include <gtk/gtk.h>
@@ -212,7 +213,9 @@ int wxDialog::ShowModal()
     g_openDialogs++;
 
     gtk_grab_add( m_widget );
-    gtk_main();
+
+    wxEventLoop().Run();
+
     gtk_grab_remove( m_widget );
 
     g_openDialogs--;