X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b886fae6484edbb3a2fdbe8be74b3a840e9c84ee..40e5ebbf98728d627e4d3c9e3a57f28f5bb8fcb9:/src/x11/utils.cpp diff --git a/src/x11/utils.cpp b/src/x11/utils.cpp index df9d4f9da5..2f06547b2d 100644 --- a/src/x11/utils.cpp +++ b/src/x11/utils.cpp @@ -34,6 +34,8 @@ #endif #include "wx/apptrait.h" +#include "wx/generic/private/timer.h" +#include "wx/evtloop.h" #include #include @@ -110,6 +112,7 @@ void wxCheckForFinishedChildren() // Map empty, delete it. delete gs_procmap; gs_procmap = NULL; + return; } for (it = gs_procmap->begin();it != gs_procmap->end(); ++it) { @@ -168,6 +171,10 @@ wxPortId wxGUIAppTraits::GetToolkitVersion(int *verMaj, int *verMin) const return wxPORT_X11; } +wxEventLoopBase* wxGUIAppTraits::CreateEventLoop() +{ + return new wxEventLoop; +} // ---------------------------------------------------------------------------- // display info @@ -272,8 +279,11 @@ void wxCloseDisplay() bool wxSetDisplay(const wxString& displayName) { - Display * - dpy = XOpenDisplay(displayName.empty() ? NULL : displayName.mb_str()); + Display *dpy = XOpenDisplay + ( + displayName.empty() ? NULL + : (const char *)displayName.mb_str() + ); if ( !dpy ) {