From 1bcc5aa7e4948144382ac3ce5e62794d3c69ec93 Mon Sep 17 00:00:00 2001 From: Marek Temnyak Date: Thu, 14 Apr 2016 17:27:59 +0200 Subject: [PATCH] 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 --- src/gtk/scrolbar.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gtk/scrolbar.cpp b/src/gtk/scrolbar.cpp index 071dc248e3..3838510e77 100644 --- a/src/gtk/scrolbar.cpp +++ b/src/gtk/scrolbar.cpp @@ -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);