Only respond to selection with button 1. This allows context-sensitive

Thu Jun 18 23:08:36 1998  Owen Taylor  <otaylor@gtk.org>

	* gtk/gtklist.c (gtk_list_button_press): Only respond
	  to selection with button 1. This allows context-sensitive
	  menus to work correctly.
This commit is contained in:
Owen Taylor 1998-06-19 03:12:19 +00:00 committed by Owen Taylor
parent 3c90c2cd53
commit 5c5a45f9b0
8 changed files with 43 additions and 1 deletions

View File

@ -1,3 +1,9 @@
Thu Jun 18 23:08:36 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtklist.c (gtk_list_button_press): Only respond
to selection with button 1. This allows context-sensitive
menus to work correctly.
Fri Jun 19 03:29:04 1998 Tim Janik <timj@gtk.org>
* gtk/gtkaccelgroup.c:

View File

@ -1,3 +1,9 @@
Thu Jun 18 23:08:36 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtklist.c (gtk_list_button_press): Only respond
to selection with button 1. This allows context-sensitive
menus to work correctly.
Fri Jun 19 03:29:04 1998 Tim Janik <timj@gtk.org>
* gtk/gtkaccelgroup.c:

View File

@ -1,3 +1,9 @@
Thu Jun 18 23:08:36 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtklist.c (gtk_list_button_press): Only respond
to selection with button 1. This allows context-sensitive
menus to work correctly.
Fri Jun 19 03:29:04 1998 Tim Janik <timj@gtk.org>
* gtk/gtkaccelgroup.c:

View File

@ -1,3 +1,9 @@
Thu Jun 18 23:08:36 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtklist.c (gtk_list_button_press): Only respond
to selection with button 1. This allows context-sensitive
menus to work correctly.
Fri Jun 19 03:29:04 1998 Tim Janik <timj@gtk.org>
* gtk/gtkaccelgroup.c:

View File

@ -1,3 +1,9 @@
Thu Jun 18 23:08:36 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtklist.c (gtk_list_button_press): Only respond
to selection with button 1. This allows context-sensitive
menus to work correctly.
Fri Jun 19 03:29:04 1998 Tim Janik <timj@gtk.org>
* gtk/gtkaccelgroup.c:

View File

@ -1,3 +1,9 @@
Thu Jun 18 23:08:36 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtklist.c (gtk_list_button_press): Only respond
to selection with button 1. This allows context-sensitive
menus to work correctly.
Fri Jun 19 03:29:04 1998 Tim Janik <timj@gtk.org>
* gtk/gtkaccelgroup.c:

View File

@ -1,3 +1,9 @@
Thu Jun 18 23:08:36 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtklist.c (gtk_list_button_press): Only respond
to selection with button 1. This allows context-sensitive
menus to work correctly.
Fri Jun 19 03:29:04 1998 Tim Janik <timj@gtk.org>
* gtk/gtkaccelgroup.c:

View File

@ -757,7 +757,7 @@ gtk_list_button_press (GtkWidget *widget,
list = GTK_LIST (widget);
item = gtk_get_event_widget ((GdkEvent*) event);
if (list->button && (list->button != event->button))
if ((event->button != 1) || (list->button))
return FALSE;
while (item && !GTK_IS_LIST_ITEM (item))