]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/evtloop.cpp
Correct wxDataViewListModel::RowPrepended
[wxWidgets.git] / src / motif / evtloop.cpp
index 367982dcb83ec4c41571bbc330639584ff7746a9..a3994827f825b296f3743c3c976fc07e35c1263a 100644 (file)
@@ -137,6 +137,20 @@ void wxGUIEventLoop::Exit(int rc)
     ::wxBreakDispatch();
 }
 
     ::wxBreakDispatch();
 }
 
+bool wxGUIEventLoop::YieldFor(long eventsToProcess)
+{
+    m_isInsideYield = true;
+    m_eventsToProcessInsideYield = eventsToProcess;
+
+    while (wxTheApp && wxTheApp->Pending())
+        // TODO: implement event filtering using the eventsToProcess mask
+        wxTheApp->Dispatch();
+
+    m_isInsideYield = false;
+
+    return true;
+}
+
 // ----------------------------------------------------------------------------
 // wxEventLoop message processing dispatching
 // ----------------------------------------------------------------------------
 // ----------------------------------------------------------------------------
 // wxEventLoop message processing dispatching
 // ----------------------------------------------------------------------------