]> git.saurik.com Git - wxWidgets.git/commit
Initialize scrollbar positions in wxGTK correctly.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 13 Nov 2010 15:03:26 +0000 (15:03 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 13 Nov 2010 15:03:26 +0000 (15:03 +0000)
commit18198aaea2038cd428c6801c829c3d6f4e48c9d6
tree028bb912cac3df892c5b814299c049334a12ee30
parent681694bca959aa25670a22ee70833f5a71e39fca
Initialize scrollbar positions in wxGTK correctly.

The scrollbar positions stored in wxWindow::m_scrollPos were not initially
correct in wxGTK because wxScrollHelper::SetScrollbars() didn't update them
and only set the values of the underlying GtkAdjustments themselves. This
resulted in filtering out of the first scroll event as the code (wrongly)
believed that the scrollbar position hadn't changed.

Fix this by setting m_scrollPos to the real scrollbar positions.

Closes #12468.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66142 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/gtk/scrolwin.cpp