extern wxList wxPendingDelete;
extern bool wxAddIdleCallback();
-wxApp *wxTheApp = NULL;
-
wxHashTable *wxWidgetHashTable = NULL;
IMPLEMENT_DYNAMIC_CLASS(wxApp, wxEvtHandler)
delete wxLog::SetActiveTarget(NULL);
}
+void wxApp::Exit()
+{
+ wxApp::CleanUp();
+
+ wxAppConsole::Exit();
+}
+
// ============================================================================
// wxEntry*
// ============================================================================
return retValue;
}
-// Static member initialization
-wxAppInitializerFunction wxAppBase::m_appInitFn = (wxAppInitializerFunction) NULL;
-
wxApp::wxApp()
{
argc = 0;
applicationShellWidgetClass,
(Display*)display,
NULL, 0 );
+ XtSetMappedWhenManaged( tlw, False );
+ XtRealizeWidget( tlw );
XtAddCallback( tlw, XmNdestroyCallback,
(XtCallbackProc)wxTLWidgetDestroyCallback,
(*m_perDisplayData)[display].m_topLevelWidget = (Widget)widget;
}
-void wxExit()
-{
- int retValue = 0;
- if (wxTheApp)
- retValue = wxTheApp->OnExit();
-
- wxApp::CleanUp();
- /*
- * Exit in some platform-specific way.
- * Not recommended that the app calls this:
- * only for emergencies.
- */
- exit(retValue);
-}
-
// Yield to other processes
bool wxApp::Yield(bool onlyIfNeeded)