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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user