--- gtk+-3.24.43/gtk/gtkfilechooserdialog.c.orig +++ gtk+-3.24.43/gtk/gtkfilechooserdialog.c @@ -678,6 +678,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 *); }