IMPLEMENT_DYNAMIC_CLASS(wxApp, wxEvtHandler)
-#ifdef __WXDEBUG__
extern "C"
{
typedef int (*XErrorHandlerFunc)(Display *, XErrorEvent *);
}
}
-#endif // __WXDEBUG__
bool wxApp::Initialize(int& argc_, wxChar **argv_)
{
}
m_initialDisplay = (WXDisplay*) dpy;
-#ifdef __WXDEBUG__
// install the X error handler
gs_pfnXErrorHandler = XSetErrorHandler(wxXErrorHandler);
-#endif // __WXDEBUG__
// Add general resize proc
XtActionsRec rec;
.m_topLevelRealizedWidget = (Widget)widget;
}
-// Yield to other processes
-
-bool wxApp::Yield(bool onlyIfNeeded)
-{
- static bool s_inYield = false;
-
- if ( s_inYield )
- {
- if ( !onlyIfNeeded )
- {
- wxFAIL_MSG( wxT("wxYield called recursively" ) );
- }
-
- return false;
- }
-
- s_inYield = true;
-
- wxEventLoopGuarantor dummyLoopIfNeeded;
- while (wxTheApp && wxTheApp->Pending())
- wxTheApp->Dispatch();
-
- s_inYield = false;
-
- return true;
-}
// ----------------------------------------------------------------------------
// accessors for C modules