X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a92b8709d9212d129d69c57065cebd4ee118fbac..24b9f055150de329d1fb61df5ce8d14e6d657cd0:/src/gtk1/app.cpp diff --git a/src/gtk1/app.cpp b/src/gtk1/app.cpp index 1bf0720c28..e2bdb2f344 100644 --- a/src/gtk1/app.cpp +++ b/src/gtk1/app.cpp @@ -309,11 +309,6 @@ END_EVENT_TABLE() wxApp::wxApp() { - wxTheApp = this; - - m_topWindow = (wxWindow *) NULL; - m_exitOnFrameDelete = TRUE; - m_idleTag = 0; wxapp_install_idle_handler(); @@ -323,8 +318,6 @@ wxApp::wxApp() #endif m_colorCube = (unsigned char*) NULL; - - m_useBestVisual = FALSE; } wxApp::~wxApp() @@ -340,6 +333,9 @@ wxApp::~wxApp() bool wxApp::OnInitGui() { + if ( !wxAppBase::OnInitGui() ) + return FALSE; + GdkVisual *visual = gdk_visual_get_system(); /* on some machines, the default visual is just 256 colours, so @@ -550,7 +546,9 @@ bool wxApp::Initialize() wxSystemSettings::Init(); +#if wxUSE_INTL wxFont::SetDefaultEncoding(wxLocale::GetSystemEncoding()); +#endif // GL: I'm annoyed ... I don't know where to put this and I don't want to // create a module for that as it's part of the core.