]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed IMPLEMENT_APP to work even if compiled with --with-themes and win32 or gtk...
authorVáclav Slavík <vslavik@fastmail.fm>
Fri, 29 Sep 2006 12:49:36 +0000 (12:49 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Fri, 29 Sep 2006 12:49:36 +0000 (12:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/univ/theme.cpp

index 2eb31fb1d4af442b68a6e801eec3ef04408a05af..aa8be8e2d9faa5d1c6463b20c9bb36d923492069 100644 (file)
@@ -95,13 +95,9 @@ wxThemeInfo::wxThemeInfo(Constructor c,
     }
     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);