From: <sa...@us...> - 2006-11-30 02:01:50
|
Revision: 17850 http://svn.sourceforge.net/gaim/?rev=17850&view=rev Author: sadrul Date: 2006-11-29 18:01:49 -0800 (Wed, 29 Nov 2006) Log Message: ----------- 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. Modified Paths: -------------- trunk/gtk/gtkconv.c Modified: trunk/gtk/gtkconv.c =================================================================== --- trunk/gtk/gtkconv.c 2006-11-29 23:46:55 UTC (rev 17849) +++ trunk/gtk/gtkconv.c 2006-11-30 02:01:49 UTC (rev 17850) @@ -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) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |