Add missing implementation of wxScrollBar::SetThumbSize() in wxGTK

This method was declared but never defined somehow, do define it now.

Closes https://github.com/wxWidgets/wxWidgets/pull/272
This commit is contained in:
Marek Temnyak
2016-04-14 17:27:59 +02:00
committed by Vadim Zeitlin
parent 70b64b8c53
commit 1bcc5aa7e4

View File

@@ -222,6 +222,11 @@ void wxScrollBar::SetScrollbar(int position, int thumbSize, int range, int pageS
g_signal_handlers_unblock_by_func(m_widget, (void*)gtk_value_changed, this);
}
void wxScrollBar::SetThumbSize(int thumbSize)
{
SetScrollbar(GetThumbPosition(), thumbSize, GetRange(), GetPageSize());
}
void wxScrollBar::SetPageSize( int pageLength )
{
SetScrollbar(GetThumbPosition(), GetThumbSize(), GetRange(), pageLength);