// Created: 06.08.00
// RCS-ID: $Id$
// Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com)
-// Licence: wxWindows license
+// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
// ===========================================================================
// headers
// ---------------------------------------------------------------------------
-#ifdef __GNUG__
- #pragma implementation "theme.h"
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
if ( ms_theme )
{
// we already have a theme
- return TRUE;
+ return true;
}
wxString nameDefTheme;
}
else // use native theme by default
{
- #if defined(__WXGTK__)
- nameDefTheme = _T("gtk");
- #elif defined(__WXX11__)
- nameDefTheme = _T("win32");
- #else
- nameDefTheme = _T("win32");
- #endif
+#ifdef wxUNIV_DEFAULT_THEME
+ nameDefTheme = _T(wxSTRINGIZE(wxUNIV_DEFAULT_THEME));
+#endif
}
wxTheme *theme = Create(nameDefTheme);
{
wxLogError(_("Failed to initialize GUI: no built-in themes found."));
- return FALSE;
+ return false;
}
// Set the theme as current.
wxTheme::Set(theme);
- return TRUE;
+ return true;
}
/* static */ wxTheme *wxTheme::Set(wxTheme *theme)
// has one
wxArtProvider *art = ms_theme->GetArtProvider();
if ( art )
- wxArtProvider::PushProvider(art);
+ wxArtProvider::Push(art);
}
return themeOld;