comparison pidgin/gtkconv.c @ 15614:b6f9f5331a82

A double click on the conv. area was getting through to the middle-click parting code. What is worse is that it wasn't necessarily choosing the correct tab. I didn't want to change pidgin_conv_get_tab_at_xy() to only deal with being actually over a tab, so we will ignore double clicks here.
author Daniel Atallah <daniel.atallah@gmail.com>
date Sun, 11 Feb 2007 03:05:41 +0000
parents b03021cef5cb
children a830f9756f23
comparison
equal deleted inserted replaced
15613:b0471b2a1de9 15614:b6f9f5331a82
7253 gint nb_x, nb_y, x_rel, y_rel; 7253 gint nb_x, nb_y, x_rel, y_rel;
7254 int tab_clicked; 7254 int tab_clicked;
7255 GtkWidget *page; 7255 GtkWidget *page;
7256 GtkWidget *tab; 7256 GtkWidget *tab;
7257 7257
7258 if (e->button == 2) { 7258 if (e->button == 2 && e->type == GDK_BUTTON_PRESS) {
7259 PidginConversation *gtkconv; 7259 PidginConversation *gtkconv;
7260 tab_clicked = pidgin_conv_get_tab_at_xy(win, e->x_root, e->y_root, NULL); 7260 tab_clicked = pidgin_conv_get_tab_at_xy(win, e->x_root, e->y_root, NULL);
7261 7261
7262 if (tab_clicked == -1) 7262 if (tab_clicked == -1)
7263 return FALSE; 7263 return FALSE;