]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/notebook.cpp
Removed no longer needed code to fix combo sizing (causes layout problems on Windows)
[wxWidgets.git] / src / gtk1 / notebook.cpp
index 3b0b8fe5ab3998b9afbbcc1d00f052e87305a735..fa18809974dab424a65ec6d29ac17cce7122de21 100644 (file)
@@ -736,7 +736,15 @@ int wxNotebook::HitTest(const wxPoint& pt, long *flags) const
     const gint y = m_widget->allocation.y;
 
     const size_t count = GetPageCount();
-    for ( size_t i = 0; i < count; i++ )
+    size_t i = 0;
+
+#ifdef __WXGTK20__
+    GtkNotebook * notebook = GTK_NOTEBOOK(m_widget);
+    if (gtk_notebook_get_scrollable(notebook));
+        i = g_list_position( notebook->children, notebook->first_tab );
+#endif
+
+    for ( ; i < count; i++ )
     {
         wxGtkNotebookPage* nb_page = GetNotebookPage(i);
         GtkWidget *box = nb_page->m_box;