]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fix
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 20 Jul 2003 20:22:26 +0000 (20:22 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 20 Jul 2003 20:22:26 +0000 (20:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22168 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/renderer.cpp
src/gtk1/renderer.cpp

index 3091e744bd50757e2545c94bb4f263cecb8327c9..d9b057e69352e80f58fd1ebdf914e36d0f758890 100644 (file)
 #include "wx/dc.h"
 #include "wx/renderer.h"
 
+#ifdef __WXGTK20__
+    #include "wx/settings.h"
+#endif // GTK 2.0
+
 // ----------------------------------------------------------------------------
 // wxRendererGTK: our wxRendererNative implementation
 // ----------------------------------------------------------------------------
@@ -97,7 +101,8 @@ void
 wxRendererGTK::DrawTreeItemButton(wxWindow* WXUNUSED(win),
                                   wxDC& dc, const wxRect& rect, int flags)
 {
-    dc.SetBrush(*m_hilightBrush);
+    dc.SetBrush(wxBrush(wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHT),
+                        wxSOLID));
     dc.SetPen(*wxBLACK_PEN);
     wxPoint button[3];
 
index 3091e744bd50757e2545c94bb4f263cecb8327c9..d9b057e69352e80f58fd1ebdf914e36d0f758890 100644 (file)
 #include "wx/dc.h"
 #include "wx/renderer.h"
 
+#ifdef __WXGTK20__
+    #include "wx/settings.h"
+#endif // GTK 2.0
+
 // ----------------------------------------------------------------------------
 // wxRendererGTK: our wxRendererNative implementation
 // ----------------------------------------------------------------------------
@@ -97,7 +101,8 @@ void
 wxRendererGTK::DrawTreeItemButton(wxWindow* WXUNUSED(win),
                                   wxDC& dc, const wxRect& rect, int flags)
 {
-    dc.SetBrush(*m_hilightBrush);
+    dc.SetBrush(wxBrush(wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHT),
+                        wxSOLID));
     dc.SetPen(*wxBLACK_PEN);
     wxPoint button[3];