X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a92b8709d9212d129d69c57065cebd4ee118fbac..9806a0e71eb2190827e93cd463e9682a3b939eee:/src/gtk/app.cpp diff --git a/src/gtk/app.cpp b/src/gtk/app.cpp index 1bf0720c28..e2bdb2f344 100644 --- a/src/gtk/app.cpp +++ b/src/gtk/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.