more wxPostEvent MT fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2004-11-12 21:44:26 +00:00
parent 281818319b
commit c263eb0384
4 changed files with 34 additions and 30 deletions

View File

@@ -101,16 +101,13 @@ void wxEventLoop::Exit(int rc)
// wxEventLoop message processing dispatching
// ----------------------------------------------------------------------------
extern bool g_isIdle;
bool wxEventLoop::Pending() const
{
if (wxTheApp && !g_isIdle)
if (wxTheApp)
{
// We need to remove idle callbacks or gtk_events_pending will
// never return false.
wxTheApp->RemoveIdleTag();
g_isIdle = TRUE;
}
return gtk_events_pending();