From: <sea...@us...> - 2006-10-13 00:37:48
|
Revision: 17475 http://svn.sourceforge.net/gaim/?rev=17475&view=rev Author: seanegan Date: 2006-10-12 17:37:44 -0700 (Thu, 12 Oct 2006) Log Message: ----------- Middle-click closes tabs. It's requested enough, and I can't think of any reason *not* to do it Modified Paths: -------------- trunk/gtk/gtkconv.c Modified: trunk/gtk/gtkconv.c =================================================================== --- trunk/gtk/gtkconv.c 2006-10-13 00:28:18 UTC (rev 17474) +++ trunk/gtk/gtkconv.c 2006-10-13 00:37:44 UTC (rev 17475) @@ -7082,6 +7082,19 @@ GtkWidget *page; GtkWidget *tab; + if (e->button == 2) { + GaimGtkConversation *gtkconv; + tab_clicked = gaim_gtkconv_get_tab_at_xy(win, e->x_root, e->y_root, NULL); + + if (tab_clicked == -1) + return FALSE; + + gtkconv = gaim_gtk_conv_window_get_gtkconv_at_index(win, tab_clicked); + close_conv_cb(NULL, gtkconv); + return TRUE; + } + + if (e->button != 1 || e->type != GDK_BUTTON_PRESS) return FALSE; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |