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.
This commit is contained in:
Alx Sa 2025-03-22 02:10:46 +00:00
parent 61d38cf9c1
commit c997349eec
1 changed files with 4 additions and 2 deletions

View File

@ -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 =