Initialize Xt locale handling.
Set the correct default font encoding on startup. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35025 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
b12401e0d5
commit
9d02485ed9
@ -97,6 +97,10 @@ bool wxApp::Initialize(int& argc, wxChar **argv)
|
|||||||
|
|
||||||
wxWidgetHashTable = new wxHashTable(wxKEY_INTEGER);
|
wxWidgetHashTable = new wxHashTable(wxKEY_INTEGER);
|
||||||
|
|
||||||
|
#if wxUSE_INTL
|
||||||
|
wxFont::SetDefaultEncoding(wxLocale::GetSystemEncoding());
|
||||||
|
#endif
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -189,6 +193,7 @@ bool wxApp::OnInitGui()
|
|||||||
if( !wxAppBase::OnInitGui() )
|
if( !wxAppBase::OnInitGui() )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
XtSetLanguageProc(NULL, NULL, NULL);
|
||||||
XtToolkitInitialize() ;
|
XtToolkitInitialize() ;
|
||||||
wxTheApp->m_appContext = (WXAppContext) XtCreateApplicationContext();
|
wxTheApp->m_appContext = (WXAppContext) XtCreateApplicationContext();
|
||||||
XtAppSetFallbackResources((XtAppContext) wxTheApp->m_appContext, fallbackResources);
|
XtAppSetFallbackResources((XtAppContext) wxTheApp->m_appContext, fallbackResources);
|
||||||
|
Loading…
Reference in New Issue
Block a user