]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/app.cpp
Improve wxMenu docs
[wxWidgets.git] / src / gtk / app.cpp
index d16741238b99ae806f35c5aa54a5cf9352cc19ea..c4315c64e6c3c74f2b3b548e29abb8ec6d5a5cb6 100644 (file)
@@ -204,6 +204,11 @@ bool wxApp::DoIdle()
         g_source_remove(m_idleSourceId);
         m_idleSourceId = 0;
     }
+
+    // Pending events can be added asynchronously,
+    // need to keep idle source if any have appeared
+    needMore = needMore || HasPendingEvents();
+
     // if more idle processing requested
     if (needMore)
     {
@@ -437,6 +442,7 @@ bool wxApp::Initialize(int& argc_, wxChar **argv_)
         }
 
         argc_ = argcGTK;
+        argv_[argc_] = NULL;
     }
     //else: gtk_init() didn't modify our parameters