// wxYield
//-----------------------------------------------------------------------------
-bool wxApp::Yield(bool onlyIfNeeded)
+bool wxApp::DoYield(bool onlyIfNeeded, long eventsToProcess)
{
if ( m_isInsideYield )
{
#endif // wxUSE_THREADS
m_isInsideYield = true;
+ m_eventsToProcessInsideYield = eventsToProcess;
// We need to remove idle callbacks or the loop will
// never finish.
wxLog::Suspend();
#endif
+ // TODO: implement event filtering using the eventsToProcess mask
while (gtk_events_pending())
gtk_main_iteration();