mirror of https://github.com/GNOME/gimp.git
The middle mouse button now pops up the menu as well as the third
when clicking on the layer/channel. This should help users that use a tablet and don't have a right mouse button (like me). --Sven
This commit is contained in:
parent
51b1e61d3f
commit
5ed22def4a
|
@ -1,3 +1,10 @@
|
|||
Thu Jun 18 00:56:41 MEST 1998 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* channels_dialog.c
|
||||
* layers_dialog.c: the middle mouse button now pops up the menu
|
||||
as well as the third when clicking on the layer/channel. This should
|
||||
help users that use a tablet and don't have a right mouse button.
|
||||
|
||||
Wed Jun 17 17:47:30 MEST 1998 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/preferences_dialog.c: fixed a bug I introduced with the
|
||||
|
|
|
@ -771,9 +771,9 @@ channel_list_events (GtkWidget *widget,
|
|||
case GDK_BUTTON_PRESS:
|
||||
bevent = (GdkEventButton *) event;
|
||||
|
||||
if (bevent->button == 3)
|
||||
if (bevent->button == 3 || bevent->button == 2)
|
||||
{
|
||||
gtk_menu_popup (GTK_MENU (channelsD->ops_menu), NULL, NULL, NULL, NULL, 3, bevent->time);
|
||||
gtk_menu_popup (GTK_MENU (channelsD->ops_menu), NULL, NULL, NULL, NULL, bevent->button, bevent->time);
|
||||
return TRUE;
|
||||
}
|
||||
/* Grumble - we have to handle double clicks ourselves because channels_dialog_flush is broken */
|
||||
|
|
|
@ -771,9 +771,9 @@ channel_list_events (GtkWidget *widget,
|
|||
case GDK_BUTTON_PRESS:
|
||||
bevent = (GdkEventButton *) event;
|
||||
|
||||
if (bevent->button == 3)
|
||||
if (bevent->button == 3 || bevent->button == 2)
|
||||
{
|
||||
gtk_menu_popup (GTK_MENU (channelsD->ops_menu), NULL, NULL, NULL, NULL, 3, bevent->time);
|
||||
gtk_menu_popup (GTK_MENU (channelsD->ops_menu), NULL, NULL, NULL, NULL, bevent->button, bevent->time);
|
||||
return TRUE;
|
||||
}
|
||||
/* Grumble - we have to handle double clicks ourselves because channels_dialog_flush is broken */
|
||||
|
|
|
@ -1488,8 +1488,8 @@ layer_list_events (GtkWidget *widget,
|
|||
case GDK_BUTTON_PRESS:
|
||||
bevent = (GdkEventButton *) event;
|
||||
|
||||
if (bevent->button == 3)
|
||||
gtk_menu_popup (GTK_MENU (layersD->ops_menu), NULL, NULL, NULL, NULL, 3, bevent->time);
|
||||
if (bevent->button == 3 || bevent->button == 2)
|
||||
gtk_menu_popup (GTK_MENU (layersD->ops_menu), NULL, NULL, NULL, NULL, bevent->button, bevent->time);
|
||||
break;
|
||||
|
||||
case GDK_2BUTTON_PRESS:
|
||||
|
|
|
@ -1488,8 +1488,8 @@ layer_list_events (GtkWidget *widget,
|
|||
case GDK_BUTTON_PRESS:
|
||||
bevent = (GdkEventButton *) event;
|
||||
|
||||
if (bevent->button == 3)
|
||||
gtk_menu_popup (GTK_MENU (layersD->ops_menu), NULL, NULL, NULL, NULL, 3, bevent->time);
|
||||
if (bevent->button == 3 || bevent->button == 2)
|
||||
gtk_menu_popup (GTK_MENU (layersD->ops_menu), NULL, NULL, NULL, NULL, bevent->button, bevent->time);
|
||||
break;
|
||||
|
||||
case GDK_2BUTTON_PRESS:
|
||||
|
|
Loading…
Reference in New Issue