// headers
// ---------------------------------------------------------------------------
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
- #pragma implementation "theme.h"
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
{
nameDefTheme = p;
}
+#ifdef wxUNIV_DEFAULT_THEME
else // use native theme by default
{
- #if defined(__WXGTK__)
- nameDefTheme = _T("gtk");
- #elif defined(__WXX11__)
- nameDefTheme = _T("win32");
- #else
- nameDefTheme = _T("win32");
- #endif
+ nameDefTheme = wxSTRINGIZE_T(wxUNIV_DEFAULT_THEME);
}
+#endif // wxUNIV_DEFAULT_THEME
wxTheme *theme = Create(nameDefTheme);
// has one
wxArtProvider *art = ms_theme->GetArtProvider();
if ( art )
- wxArtProvider::PushProvider(art);
+ wxArtProvider::Push(art);
}
return themeOld;