X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/76ed8f8d9c2b826d77d70b41c046decbde23da35..e487524e492809638b7e335937c41fd432458a54:/src/gtk1/scrolbar.cpp diff --git a/src/gtk1/scrolbar.cpp b/src/gtk1/scrolbar.cpp index b0987af6b3..32a9168bc2 100644 --- a/src/gtk1/scrolbar.cpp +++ b/src/gtk1/scrolbar.cpp @@ -152,7 +152,7 @@ bool wxScrollBar::Create(wxWindow *parent, wxWindowID id, return TRUE; } -int wxScrollBar::GetPosition(void) const +int wxScrollBar::GetThumbPosition(void) const { return (int)(m_adjust->value+0.5); } @@ -172,7 +172,7 @@ int wxScrollBar::GetRange() const return (int)(m_adjust->upper+0.5); } -void wxScrollBar::SetPosition( int viewStart ) +void wxScrollBar::SetThumbPosition( int viewStart ) { if (m_isScrolling) return; @@ -196,7 +196,7 @@ void wxScrollBar::SetScrollbar( int position, int thumbSize, int range, int page (fabs(fthumb-m_adjust->page_size) < 0.2) && (fabs(fpage-m_adjust->page_increment) < 0.2)) { - SetPosition( position ); + SetThumbPosition( position ); return; } @@ -215,12 +215,12 @@ void wxScrollBar::SetScrollbar( int position, int thumbSize, int range, int page // Backward compatibility int wxScrollBar::GetValue(void) const { - return GetPosition(); + return GetThumbPosition(); } void wxScrollBar::SetValue( int viewStart ) { - SetPosition( viewStart ); + SetThumbPosition( viewStart ); } void wxScrollBar::GetValues( int *viewStart, int *viewLength, int *objectLength, int *pageLength ) const