X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5e1eac149fc18f51d5a25ac00d957ccaad87b3fa..04e7bc9f905d65e355589cf4ee9898c5574263be:/src/unix/evtloopunix.cpp diff --git a/src/unix/evtloopunix.cpp b/src/unix/evtloopunix.cpp index c147a7651d..76272844d3 100644 --- a/src/unix/evtloopunix.cpp +++ b/src/unix/evtloopunix.cpp @@ -27,6 +27,7 @@ #endif #include +#include "wx/apptrait.h" #include "wx/evtloop.h" #include "wx/thread.h" #include "wx/module.h" @@ -148,6 +149,7 @@ bool wxConsoleEventLoop::Pending() const bool wxConsoleEventLoop::Dispatch() { + m_dispatcher->Dispatch(); wxTheApp->ProcessPendingEvents(); return true; } @@ -175,7 +177,7 @@ void wxConsoleEventLoop::OnNextIteration() timeout = wxFDIODispatcher::TIMEOUT_INFINITE; } - m_dispatcher->RunLoop(timeout); + m_dispatcher->Dispatch(timeout); #if wxUSE_TIMER wxTimerScheduler::Get().NotifyExpired(); @@ -185,4 +187,10 @@ void wxConsoleEventLoop::OnNextIteration() wxTheApp->CheckSignal(); } + +wxEventLoopBase *wxConsoleAppTraits::CreateEventLoop() +{ + return new wxEventLoop(); +} + #endif // wxUSE_CONSOLE_EVENTLOOP