X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4353a8df6eb0c743f42a85364235195246225b76..8168167976dc3cc5f5223a21e1a62ba91a4f77b3:/src/univ/themes/gtk.cpp?ds=sidebyside diff --git a/src/univ/themes/gtk.cpp b/src/univ/themes/gtk.cpp index 3e011c3a0e..1b66387049 100644 --- a/src/univ/themes/gtk.cpp +++ b/src/univ/themes/gtk.cpp @@ -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; @@ -83,7 +84,7 @@ public: wxGTKRenderer(const wxColourScheme *scheme); // wxRenderer methods - virtual void DrawFocusRect(wxDC& dc, const wxRect& rect); + virtual void DrawFocusRect(wxDC& dc, const wxRect& rect, int flags = 0); virtual void DrawTextBorder(wxDC& dc, wxBorder border, const wxRect& rect, @@ -833,7 +834,8 @@ void wxGTKRenderer::DrawSunkenBorder(wxDC& dc, wxRect *rect) DrawShadedRect(dc, rect, m_penBlack, m_penLightGrey); } -void wxGTKRenderer::DrawFocusRect(wxDC& dc, const wxRect& rect) +void +wxGTKRenderer::DrawFocusRect(wxDC& dc, const wxRect& rect, int WXUNUSED(flags)) { dc.SetBrush(*wxTRANSPARENT_BRUSH); wxRect rectFocus = rect; @@ -2774,4 +2776,4 @@ bool wxGTKTextCtrlInputHandler::HandleKey(wxInputConsumer *control, #endif // wxUSE_TEXTCTRL -#endif // wxUSE_ALL_THEMES || wxUSE_THEME_GTK +#endif // wxUSE_THEME_GTK