]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/stdpbase.cpp
changed wxCreateGreyedImage() to respect the original image mask
[wxWidgets.git] / src / common / stdpbase.cpp
index 57a729623e55c012e13a5c0db6c74e2d33c3bd74..7543b42155f041b4d444e0fbee64330bb960ccfb 100644 (file)
     #pragma hdrstop
 #endif
 
-// FIXME: there is no Mac implementation yet
-#ifndef __WXMAC__
+#if wxUSE_STDPATHS
 
 #ifndef WX_PRECOMP
     #include "wx/app.h"
 #endif //WX_PRECOMP
+#include "wx/apptrait.h"
 
 #include "wx/filename.h"
 #include "wx/stdpaths.h"
@@ -45,7 +45,12 @@ static wxStandardPaths gs_stdPaths;
 // ============================================================================
 
 /* static */
-wxStandardPaths& wxStandardPathsBase::Get()
+wxStandardPathsBase& wxStandardPathsBase::Get()
+{
+    return wxTheApp->GetTraits()->GetStandardPaths();
+}
+
+wxStandardPathsBase& wxAppTraitsBase::GetStandardPaths()
 {
     return gs_stdPaths;
 }
@@ -87,5 +92,4 @@ wxString wxStandardPathsBase::AppendAppName(const wxString& dir)
     return subdir;
 }
 
-#endif // !__WXMAC__
-
+#endif // wxUSE_STDPATHS