diff --git a/ChangeLog b/ChangeLog index 6f3868a294..c306721db6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-12-05 Federico Mena Quintero + + * gtk/gtkfilechooserdefault.c (trap_activate_cb): "event->state & + modifiers", not "event->state && modifiers". Patch by Sadrul + Habib Chowdhury . Fixes bug #323073. + 2005-12-05 Matthias Clasen * gtk/gtkwidget.c: diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 6f3868a294..c306721db6 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +2005-12-05 Federico Mena Quintero + + * gtk/gtkfilechooserdefault.c (trap_activate_cb): "event->state & + modifiers", not "event->state && modifiers". Patch by Sadrul + Habib Chowdhury . Fixes bug #323073. + 2005-12-05 Matthias Clasen * gtk/gtkwidget.c: diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index 00a78a9706..cf1f8f733c 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -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)) {