]> git.saurik.com Git - wxWidgets.git/commitdiff
simplified #ifs around the code
authorVáclav Slavík <vslavik@fastmail.fm>
Fri, 29 Sep 2006 12:51:10 +0000 (12:51 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Fri, 29 Sep 2006 12:51:10 +0000 (12:51 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41509 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/univ/themes/gtk.cpp
src/univ/themes/metal.cpp
src/univ/themes/mono.cpp
src/univ/themes/win32.cpp

index 3e011c3a0e1378c32484f31aa2a2ef9f77082357..f2ec37267cd6914bcc656939d5b2a1f46723b733 100644 (file)
@@ -24,7 +24,9 @@
     #pragma hdrstop
 #endif
 
-#if wxUSE_ALL_THEMES || wxUSE_THEME_GTK
+#include "wx/univ/theme.h"
+
+#if wxUSE_THEME_GTK
 
 #ifndef WX_PRECOMP
     #include "wx/intl.h"
@@ -62,7 +64,6 @@
 #include "wx/univ/inpcons.h"
 #include "wx/univ/inphand.h"
 #include "wx/univ/colschem.h"
-#include "wx/univ/theme.h"
 
 class WXDLLEXPORT wxGTKMenuGeometryInfo;
 
@@ -2774,4 +2775,4 @@ bool wxGTKTextCtrlInputHandler::HandleKey(wxInputConsumer *control,
 
 #endif // wxUSE_TEXTCTRL
 
-#endif // wxUSE_ALL_THEMES || wxUSE_THEME_GTK
+#endif // wxUSE_THEME_GTK
index 252a6d7bb171c84f9cfd1aea951bab45c4399e17..af2b79fd60bc683595c71bda1759dc565d7533d2 100644 (file)
@@ -24,7 +24,9 @@
     #pragma hdrstop
 #endif
 
-#if wxUSE_ALL_THEMES || wxUSE_THEME_METAL
+#include "wx/univ/theme.h"
+
+#if wxUSE_THEME_METAL
 
 #ifndef WX_PRECOMP
     #include "wx/timer.h"
@@ -57,7 +59,6 @@
 #include "wx/univ/inpcons.h"
 #include "wx/univ/inphand.h"
 #include "wx/univ/colschem.h"
-#include "wx/univ/theme.h"
 
 // wxMetalRenderer: draw the GUI elements in Metal style
 // ----------------------------------------------------------------------------
@@ -594,4 +595,4 @@ void wxMetalRenderer::DrawMetal(wxDC &dc, const wxRect &rect )
     }
 }
 
-#endif // wxUSE_ALL_THEMES || wxUSE_THEME_METAL
+#endif // wxUSE_THEME_METAL
index 1769ce0b26ec035ab70628ae65930ab76300732b..c769427651fa0d198cd48a518141f7e3c48bb04e 100644 (file)
@@ -24,7 +24,9 @@
     #pragma hdrstop
 #endif
 
-#if wxUSE_ALL_THEMES || wxUSE_THEME_MONO
+#include "wx/univ/theme.h"
+
+#if wxUSE_THEME_MONO
 
 #ifndef WX_PRECOMP
     #include "wx/dc.h"
@@ -34,7 +36,6 @@
 #include "wx/univ/stdrend.h"
 #include "wx/univ/inphand.h"
 #include "wx/univ/colschem.h"
-#include "wx/univ/theme.h"
 
 class wxMonoColourScheme;
 
@@ -1074,4 +1075,4 @@ wxBitmap wxMonoArtProvider::CreateBitmap(const wxArtID& WXUNUSED(id),
     return wxNullBitmap;
 }
 
-#endif // wxUSE_ALL_THEMES || wxUSE_THEME_MONO
+#endif // wxUSE_THEME_MONO
index a2ce8d28941616ebb0b5a8af604e39ba3df4e993..1a08bde723740ef9c65256e0ca3d862d81e2d0df 100644 (file)
@@ -24,7 +24,9 @@
     #pragma hdrstop
 #endif
 
-#if wxUSE_ALL_THEMES || wxUSE_THEME_WIN32
+#include "wx/univ/theme.h"
+
+#if wxUSE_THEME_WIN32
 
 #ifndef WX_PRECOMP
     #include "wx/timer.h"
@@ -67,7 +69,6 @@
 #include "wx/univ/inpcons.h"
 #include "wx/univ/inphand.h"
 #include "wx/univ/colschem.h"
-#include "wx/univ/theme.h"
 
 // ----------------------------------------------------------------------------
 // constants
@@ -3775,4 +3776,4 @@ bool wxWin32FrameInputHandler::HandleActivation(wxInputConsumer *consumer,
     return wxStdInputHandler::HandleActivation(consumer, activated);
 }
 
-#endif // wxUSE_ALL_THEMES || wxUSE_THEME_WIN32
+#endif // wxUSE_THEME_WIN32