--- gtk+-2.24.33/gtk/gtkfilechooserdialog.c.orig +++ gtk+-2.24.33/gtk/gtkfilechooserdialog.c @@ -407,6 +407,12 @@ { response_id = va_arg (varargs, gint); gtk_dialog_add_button (GTK_DIALOG (result), button_text, response_id); + + if ((response_id == GTK_RESPONSE_OK) || + (response_id == GTK_RESPONSE_ACCEPT) || + (response_id == GTK_RESPONSE_YES) || + (response_id == GTK_RESPONSE_APPLY)) + gtk_dialog_set_default_response (GTK_DIALOG (result), response_id); button_text = va_arg (varargs, const gchar *); }