[gimp] plug-ins: imagemap, Don't show popup menu when button 1 is pressed
- From: Mikael Magnusson <mikachu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: imagemap, Don't show popup menu when button 1 is pressed
- Date: Wed, 23 Feb 2011 12:18:12 +0000 (UTC)
commit 6ea2f4881a236fa392fbdba9574e1d367105c3db
Author: Mikael Magnusson <mikachu src gnome org>
Date: Wed Feb 23 12:59:56 2011 +0100
plug-ins: imagemap, Don't show popup menu when button 1 is pressed
Showing the menu when dragging stuff around broke event handling in
various ways. Also only show the menu on right click.
plug-ins/imagemap/imap_main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/imagemap/imap_main.c b/plug-ins/imagemap/imap_main.c
index 058f5ba..6eac6c0 100644
--- a/plug-ins/imagemap/imap_main.c
+++ b/plug-ins/imagemap/imap_main.c
@@ -385,7 +385,7 @@ arrow_on_button_press(GtkWidget *widget, GdkEventButton *event, gpointer data)
edit_shape((gint) event->x, (gint) event->y);
else
select_shape(widget, event);
- } else {
+ } else if (!(event->state & GDK_BUTTON1_MASK) && event->button == 3) {
do_popup_menu(event);
}
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]