# HG changeset patch # User Sadrul Habib Chowdhury # Date 1164852109 0 # Node ID 0f950428ef41b4587a07fcb13c2f54ef9c023933 # Parent e53cceebebb3b505c96e747713ad4a464c0db209 [gaim-migrate @ 17850] If you have arrows in the conversation window, and want to close the first visible tab by middle clicking, then you end up closing the wrong first tab. This also fixes similar issues with tab-draggings. committer: Tailor Script diff -r e53cceebebb3 -r 0f950428ef41 gtk/gtkconv.c --- a/gtk/gtkconv.c Wed Nov 29 23:46:55 2006 +0000 +++ b/gtk/gtkconv.c Thu Nov 30 02:01:49 2006 +0000 @@ -6121,6 +6121,10 @@ page = gtk_notebook_get_nth_page(GTK_NOTEBOOK(notebook), i); tab = gtk_notebook_get_tab_label(GTK_NOTEBOOK(notebook), page); + /* Make sure the tab is not hidden beyond an arrow */ + if (!GTK_WIDGET_DRAWABLE(tab)) + continue; + if (horiz) { if (x_rel >= tab->allocation.x - GAIM_HIG_BOX_SPACE && x_rel <= tab->allocation.x + tab->allocation.width + GAIM_HIG_BOX_SPACE) {