X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f660b2062cff776ee12563a49d562ad662c01d7f..9dc1d18069c519c807c2476a837e710b5ef932c6:/src/gtk1/notebook.cpp?ds=sidebyside diff --git a/src/gtk1/notebook.cpp b/src/gtk1/notebook.cpp index fa18809974..ca7fc31f13 100644 --- a/src/gtk1/notebook.cpp +++ b/src/gtk1/notebook.cpp @@ -22,8 +22,8 @@ #include "wx/bitmap.h" #include "wx/fontutil.h" -#include "wx/gtk/private.h" -#include "wx/gtk/win_gtk.h" +#include "wx/gtk1/private.h" +#include "wx/gtk1/win_gtk.h" #include @@ -738,7 +738,9 @@ int wxNotebook::HitTest(const wxPoint& pt, long *flags) const const size_t count = GetPageCount(); size_t i = 0; -#ifdef __WXGTK20__ + // MR: Code to fix HitTest index return when tabs are scrolled. + // No idea if it would work for GTK1 +#if 0 GtkNotebook * notebook = GTK_NOTEBOOK(m_widget); if (gtk_notebook_get_scrollable(notebook)); i = g_list_position( notebook->children, notebook->first_tab ); @@ -750,11 +752,7 @@ int wxNotebook::HitTest(const wxPoint& pt, long *flags) const GtkWidget *box = nb_page->m_box; // VZ: don't know how to find the border width in GTK+ 1.2 -#ifdef __WXGTK20__ - const gint border = gtk_container_get_border_width(GTK_CONTAINER(box)); -#else // !GTK+ 2.x const gint border = 0; -#endif if ( IsPointInsideWidget(pt, box, x, y, border) ) { // ok, we're inside this tab -- now find out where, if needed