From 87ebb0b789ac1e0f4b43362164d0e6b1ec1b8d9b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 3 Mar 2009 09:24:20 +0000 Subject: [PATCH] compilation fix after last commit git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59293 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk1/renderer.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/gtk1/renderer.cpp b/src/gtk1/renderer.cpp index 208da45d76..04cd173fd4 100644 --- a/src/gtk1/renderer.cpp +++ b/src/gtk1/renderer.cpp @@ -48,12 +48,12 @@ class WXDLLEXPORT wxRendererGTK : public wxDelegateRendererNative { public: // draw the header control button (used by wxListCtrl) - virtual void DrawHeaderButton(wxWindow *win, - wxDC& dc, - const wxRect& rect, - int flags = 0, - wxHeaderSortIconType sortArrow = wxHDR_SORT_ICON_NONE, - wxHeaderButtonParams* params=NULL); + virtual int DrawHeaderButton(wxWindow *win, + wxDC& dc, + const wxRect& rect, + int flags = 0, + wxHeaderSortIconType sortArrow = wxHDR_SORT_ICON_NONE, + wxHeaderButtonParams* params=NULL); virtual void DrawSplitterBorder(wxWindow *win, wxDC& dc, @@ -123,7 +123,7 @@ wxRendererGTK::GetButtonWidget() // list/tree controls drawing // ---------------------------------------------------------------------------- -void +int wxRendererGTK::DrawHeaderButton(wxWindow *win, wxDC& dc, const wxRect& rect, @@ -147,6 +147,8 @@ wxRendererGTK::DrawHeaderButton(wxWindow *win, "button", dc.LogicalToDeviceX(rect.x) -1, rect.y -1, rect.width +2, rect.height +2 ); + + return rect.width + 2; } // ---------------------------------------------------------------------------- -- 2.45.2