]> git.saurik.com Git - wxWidgets.git/commit
Fix HitTest to return the proper tab index in case there are more tabs than fit ...
authorMart Raudsepp <leio@gentoo.org>
Tue, 13 Dec 2005 01:20:41 +0000 (01:20 +0000)
committerMart Raudsepp <leio@gentoo.org>
Tue, 13 Dec 2005 01:20:41 +0000 (01:20 +0000)
commitf660b2062cff776ee12563a49d562ad662c01d7f
treee7a2aea47321530e1cfbb71553b8ca52ae7af49f
parent52c3df9930f6ad6062bf85761f1744bf693ef6d0
Fix HitTest to return the proper tab index in case there are more tabs than fit (and therefore there are scrolling
arrows), and the first visible tab isn't the first real tab. Before counting started from the visible tab, not real
tab.
While doing this, I noticed lots of "interesting" bugs wrt tab indexes and the whole wxGtkNotebookPage hack in the
code. In my opinion, to fix some of the bugs I noticed during testing, wxGtkNotebookPage has to be nuked and the
necessary parts rewritten.
Meanwhile, the HitTest fix works with wxNB_TOP styled notebooks that haven't modified tabs in a way that would have
mess up the wxGtkNotebookPage index sync. For other cases it might depend on the phase of the moon, and other factors.

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