]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/renderer.cpp
moved XML classes to the core
[wxWidgets.git] / src / gtk1 / renderer.cpp
index 1ffc8b8defbdaeff3865ad579fdb99b5624b7f93..d9b057e69352e80f58fd1ebdf914e36d0f758890 100644 (file)
 #include "wx/dc.h"
 #include "wx/renderer.h"
 
 #include "wx/dc.h"
 #include "wx/renderer.h"
 
+#ifdef __WXGTK20__
+    #include "wx/settings.h"
+#endif // GTK 2.0
+
 // ----------------------------------------------------------------------------
 // wxRendererGTK: our wxRendererNative implementation
 // ----------------------------------------------------------------------------
 // ----------------------------------------------------------------------------
 // wxRendererGTK: our wxRendererNative implementation
 // ----------------------------------------------------------------------------
@@ -94,9 +98,11 @@ wxRendererGTK::DrawHeaderButton(wxWindow *win,
 //
 // TODO: isn't there a GTK function to draw it?
 void
 //
 // TODO: isn't there a GTK function to draw it?
 void
-wxRendererGTK::DrawTreeItemButton(wxDC& dc, const wxRect& rect, int flags)
+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];
 
     dc.SetPen(*wxBLACK_PEN);
     wxPoint button[3];