From 631389f17516804c450aae3032f20e3d1bbd085b Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Sat, 20 Oct 2001 06:17:31 +0000 Subject: Changed this to not grab on a right click. Fixes Ximian bug #12660. 2001-10-20 Christopher James Lahey * gui/widgets/e-minicard.c (e_minicard_event): Changed this to not grab on a right click. Fixes Ximian bug #12660. svn path=/trunk/; revision=13818 --- addressbook/gui/widgets/e-minicard.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'addressbook/gui/widgets') diff --git a/addressbook/gui/widgets/e-minicard.c b/addressbook/gui/widgets/e-minicard.c index fb06a126b1..754aaf3e9d 100644 --- a/addressbook/gui/widgets/e-minicard.c +++ b/addressbook/gui/widgets/e-minicard.c @@ -511,7 +511,7 @@ e_minicard_event (GnomeCanvasItem *item, GdkEvent *event) } break; case GDK_BUTTON_PRESS: { - if (1 <= event->button.button && event->button.button <= 3) { + if (1 <= event->button.button && event->button.button <= 2) { int ret_val = e_minicard_selected(e_minicard, event); GdkEventMask mask = ((1 << (4 + event->button.button)) | GDK_POINTER_MOTION_MASK | @@ -530,6 +530,10 @@ e_minicard_event (GnomeCanvasItem *item, GdkEvent *event) e_minicard->drag_button = event->button.button; e_minicard->drag_button_down = TRUE; return ret_val; + } else if (event->button.button == 3) { + int ret_val = e_minicard_selected(e_minicard, event); + if (ret_val != 0) + return ret_val; } break; } -- cgit v1.2.3