X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d3a80c922c7f0932f0b3985846e58ef48e3a6da7..395cb311cf3dd86a69137b18b1027372bda6b914:/src/motif/app.cpp diff --git a/src/motif/app.cpp b/src/motif/app.cpp index 3dd27a1a8c..096845166f 100644 --- a/src/motif/app.cpp +++ b/src/motif/app.cpp @@ -42,10 +42,6 @@ #include "wx/thread.h" #endif -#if wxUSE_WX_RESOURCES - #include "wx/resource.h" -#endif - #ifdef __VMS__ #pragma message disable nosimpint #endif @@ -105,10 +101,6 @@ bool wxApp::Initialize() wxInitializeStockLists(); wxInitializeStockObjects(); -#if wxUSE_WX_RESOURCES - wxInitializeResourceSystem(); -#endif - // For PostScript printing #if wxUSE_POSTSCRIPT /* Done using wxModule now @@ -135,10 +127,6 @@ void wxApp::CleanUp() wxModule::CleanUpModules(); -#if wxUSE_WX_RESOURCES - wxCleanUpResourceSystem(); -#endif - wxDeleteStockObjects() ; // Destroy all GDI lists, etc. @@ -326,11 +314,14 @@ void wxApp::ExitMainLoop() // Is a message/event pending? bool wxApp::Pending() { + return m_eventLoop->Pending(); +#if 0 XFlush(XtDisplay( (Widget) wxTheApp->GetTopLevelWidget() )); // Fix by Doug from STI, to prevent a stall if non-X event // is found. return ((XtAppPending( (XtAppContext) GetAppContext() ) & XtIMXEvent) != 0) ; +#endif } // Dispatch a message.