"event->state & modifiers", not "event->state && modifiers". Patch by

2005-12-05  Federico Mena Quintero  <federico@ximian.com>

	* gtk/gtkfilechooserdefault.c (trap_activate_cb): "event->state &
	modifiers", not "event->state && modifiers".  Patch by Sadrul
	Habib Chowdhury <imadil@gmail.com>.  Fixes bug #323073.
This commit is contained in:
Federico Mena Quintero 2005-12-06 03:11:43 +00:00 committed by Federico Mena Quintero
parent 051231fab2
commit 446d1edbdb
3 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2005-12-05 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkfilechooserdefault.c (trap_activate_cb): "event->state &
modifiers", not "event->state && modifiers". Patch by Sadrul
Habib Chowdhury <imadil@gmail.com>. Fixes bug #323073.
2005-12-05 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkwidget.c:

View File

@ -1,3 +1,9 @@
2005-12-05 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkfilechooserdefault.c (trap_activate_cb): "event->state &
modifiers", not "event->state && modifiers". Patch by Sadrul
Habib Chowdhury <imadil@gmail.com>. Fixes bug #323073.
2005-12-05 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkwidget.c:

View File

@ -3303,7 +3303,7 @@ trap_activate_cb (GtkWidget *widget,
|| event->keyval == GDK_ISO_Enter
|| event->keyval == GDK_KP_Enter
|| event->keyval == GDK_space)
&& ((event->state && modifiers) == 0)
&& ((event->state & modifiers) == 0)
&& !(impl->action == GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER ||
impl->action == GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER))
{