diff --git a/include/wx/gtk/scrolwin.h b/include/wx/gtk/scrolwin.h index 5e86b9f26a..8209f2d61a 100644 --- a/include/wx/gtk/scrolwin.h +++ b/include/wx/gtk/scrolwin.h @@ -63,7 +63,7 @@ public: // the area between the scrollbars (spreadsheet: only cell area // will move). virtual void SetTargetWindow( wxWindow *target, bool pushEventHandler = FALSE ); - virtual wxWindow *GetTargetWindow(); + virtual wxWindow *GetTargetWindow() const; // Set the scrolled area of the window. virtual void DoSetVirtualSize( int x, int y ); diff --git a/include/wx/gtk1/scrolwin.h b/include/wx/gtk1/scrolwin.h index 5e86b9f26a..8209f2d61a 100644 --- a/include/wx/gtk1/scrolwin.h +++ b/include/wx/gtk1/scrolwin.h @@ -63,7 +63,7 @@ public: // the area between the scrollbars (spreadsheet: only cell area // will move). virtual void SetTargetWindow( wxWindow *target, bool pushEventHandler = FALSE ); - virtual wxWindow *GetTargetWindow(); + virtual wxWindow *GetTargetWindow() const; // Set the scrolled area of the window. virtual void DoSetVirtualSize( int x, int y ); diff --git a/src/gtk/scrolwin.cpp b/src/gtk/scrolwin.cpp index 9232d1e543..8a302f507b 100644 --- a/src/gtk/scrolwin.cpp +++ b/src/gtk/scrolwin.cpp @@ -442,7 +442,7 @@ void wxScrolledWindow::SetTargetWindow( wxWindow *target, bool WXUNUSED(pushEven m_targetWindow = target; } -wxWindow *wxScrolledWindow::GetTargetWindow() +wxWindow *wxScrolledWindow::GetTargetWindow() const { return m_targetWindow; } diff --git a/src/gtk1/scrolwin.cpp b/src/gtk1/scrolwin.cpp index 9232d1e543..8a302f507b 100644 --- a/src/gtk1/scrolwin.cpp +++ b/src/gtk1/scrolwin.cpp @@ -442,7 +442,7 @@ void wxScrolledWindow::SetTargetWindow( wxWindow *target, bool WXUNUSED(pushEven m_targetWindow = target; } -wxWindow *wxScrolledWindow::GetTargetWindow() +wxWindow *wxScrolledWindow::GetTargetWindow() const { return m_targetWindow; }