X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8461e4c253d4cec65e8f0320246a56d22555eb5e..5b9255698ac3ade7e00e3d5efef95b223e3c9cae:/src/motif/app.cpp diff --git a/src/motif/app.cpp b/src/motif/app.cpp index b552654bc4..8b019fdf6e 100644 --- a/src/motif/app.cpp +++ b/src/motif/app.cpp @@ -143,17 +143,7 @@ void wxApp::CleanUp() // Destroy all GDI lists, etc. - delete wxTheBrushList; - wxTheBrushList = NULL; - - delete wxThePenList; - wxThePenList = NULL; - - delete wxTheFontList; - wxTheFontList = NULL; - - delete wxTheBitmapList; - wxTheBitmapList = NULL; + wxDeleteStockLists(); delete wxTheColourDatabase; wxTheColourDatabase = NULL; @@ -763,11 +753,16 @@ bool wxApp::Yield(bool onlyIfNeeded) // TODO use XmGetPixmap (?) to get the really standard icons! +// XPM hack: make the arrays const +#define static static const + #include "wx/generic/info.xpm" #include "wx/generic/error.xpm" #include "wx/generic/question.xpm" #include "wx/generic/warning.xpm" +#undef static + wxIcon wxApp::GetStdIcon(int which) const {