X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/de6185e212ebc37ff11ff70278e3c4f68419b097..10816efb2cb6561a227a87de6d5f8b5750c2705d:/src/motif/app.cpp diff --git a/src/motif/app.cpp b/src/motif/app.cpp index 278ceb911d..e36d19b6e6 100644 --- a/src/motif/app.cpp +++ b/src/motif/app.cpp @@ -24,10 +24,10 @@ #include "wx/intl.h" #include "wx/log.h" #include "wx/utils.h" + #include "wx/memory.h" + #include "wx/font.h" #endif -#include "wx/module.h" -#include "wx/memory.h" #include "wx/evtloop.h" #if wxUSE_THREADS @@ -35,7 +35,7 @@ #endif #ifdef __VMS__ -#pragma message disable nosimpint + #pragma message disable nosimpint #endif #include #include @@ -43,7 +43,7 @@ #include #include #ifdef __VMS__ -#pragma message enable nosimpint + #pragma message enable nosimpint #endif #include "wx/motif/private.h" @@ -67,7 +67,6 @@ static void wxTLWidgetDestroyCallback(Widget w, XtPointer clientData, XtPointer ptr); static WXWidget wxCreateTopLevelWidget( WXDisplay* display ); -extern wxList wxPendingDelete; extern bool wxAddIdleCallback(); wxHashTable *wxWidgetHashTable = NULL; @@ -100,15 +99,15 @@ static int wxXErrorHandler(Display *dpy, XErrorEvent *xevent) bool wxApp::Initialize(int& argcOrig, wxChar **argvOrig) { +#if wxUSE_INTL + wxFont::SetDefaultEncoding(wxLocale::GetSystemEncoding()); +#endif + if ( !wxAppBase::Initialize(argcOrig, argvOrig) ) return false; wxWidgetHashTable = new wxHashTable(wxKEY_INTEGER); -#if wxUSE_INTL - wxFont::SetDefaultEncoding(wxLocale::GetSystemEncoding()); -#endif - return true; } @@ -133,8 +132,6 @@ void wxApp::CleanUp() #endif delete it->second; } - - delete m_perDisplayData; } void wxApp::Exit() @@ -162,7 +159,7 @@ wxApp::wxApp() wxApp::~wxApp() { - wxApp::SetInstance(NULL); + delete m_perDisplayData; } int wxApp::MainLoop() @@ -200,10 +197,17 @@ static char *fallbackResources[] = { wxMOTIF_STR("*sgiMode: True"), wxMOTIF_STR("*useSchemes: all"), #else // !__SGI__ - wxMOTIF_STR("*menuBar.marginHeight: 0"), - wxMOTIF_STR("*menuBar.shadowThickness: 1"), - wxMOTIF_STR("*background: #c0c0c0"), - wxMOTIF_STR("*foreground: black"), +#if !wxMOTIF_USE_RENDER_TABLE + wxMOTIF_STR("*.fontList: -*-helvetica-medium-r-normal-*-*-120-*-*-*-*-*-*"), +#else + wxMOTIF_STR("*wxDefaultRendition.fontName: -*-helvetica-medium-r-normal-*-*-120-*-*-*-*-*-*"), + wxMOTIF_STR("*wxDefaultRendition.fontType: FONT_IS_FONTSET"), + wxMOTIF_STR("*.renderTable: wxDefaultRendition"), +#endif + wxMOTIF_STR("*listBox.background: white"), + wxMOTIF_STR("*text.background: white"), + wxMOTIF_STR("*comboBox.Text.background: white"), + wxMOTIF_STR("*comboBox.List.background: white"), #endif // __SGI__/!__SGI__ NULL };