Support requesting more idle events.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37674 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 2006-02-22 23:37:46 +00:00
parent 38f69be155
commit 8ab9a53699

View File

@ -249,17 +249,18 @@ static gint wxapp_idle_callback( gpointer WXUNUSED(data) )
wxTheApp->m_idleTag = 0;
}
bool moreIdles = false;
// Send idle event to all who request them as long as
// no events have popped up in the event queue.
while (wxTheApp->ProcessIdle() && (gtk_events_pending() == 0))
while (moreIdles = wxTheApp->ProcessIdle() && (gtk_events_pending() == 0))
;
// Release lock again
gdk_threads_leave();
// Return FALSE to indicate that no more idle events are
// to be sent (single shot instead of continuous stream).
return FALSE;
// Return FALSE if no more idle events are to be sent
return moreIdles;
}
#if wxUSE_THREADS