changeset 14721:90882b641dda

[gaim-migrate @ 17475] Middle-click closes tabs. It's requested enough, and I can't think of any reason *not* to do it committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Fri, 13 Oct 2006 00:37:44 +0000
parents e68e20e6a653
children 51685370de57
files gtk/gtkconv.c
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gtk/gtkconv.c	Fri Oct 13 00:28:18 2006 +0000
+++ b/gtk/gtkconv.c	Fri Oct 13 00:37:44 2006 +0000
@@ -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;