mirror of https://github.com/GNOME/gimp.git
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:
parent
61d38cf9c1
commit
c997349eec
|
@ -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 =
|
||||
|
|
Loading…
Reference in New Issue