Moved wxConsoleAppTraits::CreateEventLoop from baseunix.cpp to evtloopunix.cpp,
so Unix' wxConsoleEventLoop can also be shared by platforms not having the complete ConsoleAppTraits of Unix (e.g. OS/2). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50133 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -95,11 +95,4 @@ wxTimerImpl *wxConsoleAppTraits::CreateTimerImpl(wxTimer *timer)
|
|||||||
|
|
||||||
#endif // wxUSE_TIMER
|
#endif // wxUSE_TIMER
|
||||||
|
|
||||||
#if wxUSE_CONSOLE_EVENTLOOP
|
// Note: wxConsoleAppTraits::CreateEventLoop() is defined in evtloopunix.cpp!
|
||||||
|
|
||||||
wxEventLoopBase *wxConsoleAppTraits::CreateEventLoop()
|
|
||||||
{
|
|
||||||
return new wxEventLoop();
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif // wxUSE_CONSOLE_EVENTLOOP
|
|
||||||
|
@@ -27,6 +27,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include "wx/apptrait.h"
|
||||||
#include "wx/evtloop.h"
|
#include "wx/evtloop.h"
|
||||||
#include "wx/thread.h"
|
#include "wx/thread.h"
|
||||||
#include "wx/module.h"
|
#include "wx/module.h"
|
||||||
@@ -185,4 +186,10 @@ void wxConsoleEventLoop::OnNextIteration()
|
|||||||
wxTheApp->CheckSignal();
|
wxTheApp->CheckSignal();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
wxEventLoopBase *wxConsoleAppTraits::CreateEventLoop()
|
||||||
|
{
|
||||||
|
return new wxEventLoop();
|
||||||
|
}
|
||||||
|
|
||||||
#endif // wxUSE_CONSOLE_EVENTLOOP
|
#endif // wxUSE_CONSOLE_EVENTLOOP
|
||||||
|
Reference in New Issue
Block a user