mirror of https://github.com/GNOME/gimp.git
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.
This commit is contained in:
parent
cc3f1e8a24
commit
6ea2f4881a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue