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