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:
Sven Neumann 1998-06-18 01:04:45 +00:00
parent 51b1e61d3f
commit 5ed22def4a
5 changed files with 15 additions and 8 deletions

View File

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

View File

@ -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 */

View File

@ -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 */

View File

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

View File

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