diff options
author | Christopher James Lahey <clahey@ximian.com> | 2001-10-20 14:17:31 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2001-10-20 14:17:31 +0800 |
commit | 631389f17516804c450aae3032f20e3d1bbd085b (patch) | |
tree | 13d656c6250cea08ed3dcf9be081983fb9cece13 | |
parent | a1709b95e1e6f7037a0c83cabfb2fcce9bde1946 (diff) | |
download | gsoc2013-evolution-631389f17516804c450aae3032f20e3d1bbd085b.tar.gz gsoc2013-evolution-631389f17516804c450aae3032f20e3d1bbd085b.tar.zst gsoc2013-evolution-631389f17516804c450aae3032f20e3d1bbd085b.zip |
Changed this to not grab on a right click. Fixes Ximian bug #12660.
2001-10-20 Christopher James Lahey <clahey@ximian.com>
* 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
-rw-r--r-- | addressbook/ChangeLog | 5 | ||||
-rw-r--r-- | addressbook/gui/widgets/e-minicard.c | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 44f9092c23..dc0281bddf 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,8 @@ +2001-10-20 Christopher James Lahey <clahey@ximian.com> + + * gui/widgets/e-minicard.c (e_minicard_event): Changed this to not + grab on a right click. Fixes Ximian bug #12660. + 2001-10-19 Ettore Perazzoli <ettore@ximian.com> * gui/component/addressbook-component.c 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; } |