X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d5eb08546fff0052bbe2e2c657e4da143a06a7cc..d2e66707deb10dea6f92e3e4092f8a43ef942a5d:/src/mgl/utils.cpp diff --git a/src/mgl/utils.cpp b/src/mgl/utils.cpp index b62f4b02ec..25618fdb3c 100644 --- a/src/mgl/utils.cpp +++ b/src/mgl/utils.cpp @@ -24,6 +24,7 @@ #include "wx/apptrait.h" #include "wx/process.h" +#include "wx/evtloop.h" #include #include @@ -122,6 +123,12 @@ wxPortId wxGUIAppTraits::GetToolkitVersion(int *verMaj, int *verMin) const return wxPORT_MGL; } +wxEventLoopBase* wxGUIAppTraits::CreateEventLoop() +{ + return new wxEventLoop; +} + + void wxGetMousePosition(int* x, int* y) { MS_getPos(x, y); @@ -157,21 +164,3 @@ wxMouseState wxGetMouseState() return ms; } - -#ifdef __UNIX__ - -int wxAddProcessCallback(wxEndProcessData *proc_data, int fd) -{ - wxFAIL_MSG(wxT("wxAddProcessCallback not implemented in wxMGL!")); - return 0; -#if 0 // FIXME_MGL -do we need it at all? - int tag = gdk_input_add(fd, - GDK_INPUT_READ, - GTK_EndProcessDetector, - (gpointer)proc_data); - - return tag; -#endif -} - -#endif