[gimp] app: set "OK" the default button to the "Create a New Image" dialog.



commit 0625902d713dd4076ffe5c790942f71a4f8887ef
Author: Jehan <jehan girinstud io>
Date:   Thu May 20 20:41:42 2021 +0200

    app: set "OK" the default button to the "Create a New Image" dialog.
    
    In Linux, I never paid attention to it because it was already working as
    expected (i.e. Ctrl-n followed by Enter for instance would directly
    create the image), but when testing GIMP on Windows for the installer,
    these last few days, I realized that hitting Enter when focus was on the
    dimension entries was doing nothing. Having to move the pointer to click
    a button on Windows was frustrating. So let's make OK the official
    "default response" directive for this dialog.

 app/dialogs/image-new-dialog.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/app/dialogs/image-new-dialog.c b/app/dialogs/image-new-dialog.c
index 3e91e6115f..c87e9295ee 100644
--- a/app/dialogs/image-new-dialog.c
+++ b/app/dialogs/image-new-dialog.c
@@ -107,6 +107,7 @@ image_new_dialog_new (GimpContext *context)
                      _("_OK"),     GTK_RESPONSE_OK,
 
                      NULL);
+  gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
 
   gimp_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
                                            RESPONSE_RESET,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]