]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/evtloop.cpp
Option for variable line heights (MSW and GTK+ sofar)
[wxWidgets.git] / src / gtk / evtloop.cpp
index 9cfac6466afdc74e79f2a411b4ae847fe8590140..a9843d9cda15f41de6625c5c1a8217d37a31ff28 100644 (file)
@@ -112,7 +112,6 @@ bool wxGUIEventLoop::Dispatch()
 {
     wxCHECK_MSG( IsRunning(), false, _T("can't call Dispatch() if not running") );
 
-    gtk_main_iteration();
-
-    return true;
+    // gtk_main_iteration() returns TRUE only if gtk_main_quit() was called
+    return !gtk_main_iteration();
 }