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:
Mikael Magnusson 2011-02-23 12:59:56 +01:00
parent cc3f1e8a24
commit 6ea2f4881a
1 changed files with 1 additions and 1 deletions

View File

@ -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;