X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/90b903c26306d88d3920589125ea1a03664e1b22..f5bed7a885024108682c32c74567cdf7bf2ed13b:/src/gtk/renderer.cpp diff --git a/src/gtk/renderer.cpp b/src/gtk/renderer.cpp index b86627af63..a16251eaf7 100644 --- a/src/gtk/renderer.cpp +++ b/src/gtk/renderer.cpp @@ -25,14 +25,17 @@ #endif #include "wx/renderer.h" + +#ifndef WX_PRECOMP + #include "wx/window.h" + #include "wx/dc.h" + #include "wx/dcclient.h" + #include "wx/settings.h" +#endif + #include #include "wx/gtk/win_gtk.h" -#include "wx/window.h" -#include "wx/dc.h" -#include "wx/dcclient.h" -#include "wx/settings.h" - // RR: After a correction to the orientation of the sash // this doesn't seem to be required anymore and it // seems to confuse some themes so USE_ERASE_RECT=0 @@ -436,7 +439,7 @@ wxRendererGTK::DrawComboBoxDropButton(wxWindow *win, DrawDropArrow(win,dc,rect); } -void +void wxRendererGTK::DrawCheckBox(wxWindow *win, wxDC& dc, const wxRect& rect, @@ -468,8 +471,8 @@ wxRendererGTK::DrawCheckBox(wxWindow *win, NULL, button, "cellcheck", - dc.LogicalToDeviceX(rect.x)+2, - dc.LogicalToDeviceY(rect.y)+3, + dc.LogicalToDeviceX(rect.x)+2, + dc.LogicalToDeviceY(rect.y)+3, 13, 13 ); } @@ -511,11 +514,11 @@ wxRendererGTK::DrawPushButton(wxWindow *win, ); } -void +void wxRendererGTK::DrawItemSelectionRect(wxWindow *win, - wxDC& dc, - const wxRect& rect, - int flags ) + wxDC& dc, + const wxRect& rect, + int flags ) { // for reason why we do this, see DrawDropArrow wxWindowDC& wdc = (wxWindowDC&)dc; @@ -533,7 +536,7 @@ wxRendererGTK::DrawItemSelectionRect(wxWindow *win, GTK_PIZZA(win->m_wxwindow)->bin_window, state, GTK_SHADOW_NONE, - NULL, + NULL, win->m_wxwindow, "treeview", dc.LogicalToDeviceX(rect.x),