Mercurial > pidgin
changeset 15066:0f950428ef41
[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 <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Thu, 30 Nov 2006 02:01:49 +0000 |
parents | e53cceebebb3 |
children | d08d7b7375c7 |
files | gtk/gtkconv.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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) {