wxWidgetHashTable = new wxHashTable(wxKEY_INTEGER);
+#if wxUSE_INTL
+ wxFont::SetDefaultEncoding(wxLocale::GetSystemEncoding());
+#endif
+
return true;
}
void wxApp::CleanUp()
{
+ wxAppBase::CleanUp();
+
delete wxWidgetHashTable;
wxWidgetHashTable = NULL;
- wxAppBase::CleanUp();
+ delete m_mainLoop;
+
+ for( wxPerDisplayDataMap::iterator it = m_perDisplayData->begin(),
+ end = m_perDisplayData->end();
+ it != end; ++it )
+ {
+ delete it->second->m_visualInfo;
+ XtDestroyWidget( it->second->m_topLevelWidget );
+ delete it->second;
+ }
+
+ delete m_perDisplayData;
}
void wxApp::Exit()
wxApp::~wxApp()
{
- delete m_mainLoop;
-
- for( wxPerDisplayDataMap::iterator it = m_perDisplayData->begin(),
- end = m_perDisplayData->end();
- it != end; ++it )
- {
- delete it->second->m_visualInfo;
- XtDestroyWidget( it->second->m_topLevelWidget );
- delete it->second;
- }
-
- delete m_perDisplayData;
-
wxApp::SetInstance(NULL);
}
if( !wxAppBase::OnInitGui() )
return false;
+ XtSetLanguageProc(NULL, NULL, NULL);
XtToolkitInitialize() ;
wxTheApp->m_appContext = (WXAppContext) XtCreateApplicationContext();
XtAppSetFallbackResources((XtAppContext) wxTheApp->m_appContext, fallbackResources);