From c997349eec2db856de0d686e533c535a7af1872c Mon Sep 17 00:00:00 2001 From: Alx Sa Date: Sat, 22 Mar 2025 02:10:46 +0000 Subject: [PATCH] libgimpwidgets: Add default response for GimpQueryBox dialogues Resolves #13293 This patch fixes a regression from 2.10. The OK button was not set to be the default response for certain Selection dialogues like Shrink/Grow/Border, so users could not just press Enter to apply if they were fine with the default values. This patch adds a call to gtk_dialog_set_default_response () to restore this behavior. --- libgimpwidgets/gimpquerybox.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libgimpwidgets/gimpquerybox.c b/libgimpwidgets/gimpquerybox.c index f184dc72c3..448055a405 100644 --- a/libgimpwidgets/gimpquerybox.c +++ b/libgimpwidgets/gimpquerybox.c @@ -148,9 +148,11 @@ create_query_box (const gchar *title, NULL); + gtk_dialog_set_default_response (GTK_DIALOG (query_box->qbox), + GTK_RESPONSE_OK); gimp_dialog_set_alternative_button_order (GTK_DIALOG (query_box->qbox), - GTK_RESPONSE_OK, - GTK_RESPONSE_CANCEL, + GTK_RESPONSE_OK, + GTK_RESPONSE_CANCEL, -1); query_box->response_handler =