[ghex] appwin: Default response on closing unsaved doc should be Cancel.
- From: Logan Rathbone <larathbone src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ghex] appwin: Default response on closing unsaved doc should be Cancel.
- Date: Thu, 23 Jun 2022 18:40:19 +0000 (UTC)
commit 2e6a6d734673f140c9cc12c1a8523080e44d6b9c
Author: Logan Rathbone <poprocks gmail com>
Date: Thu Jun 23 14:34:50 2022 -0400
appwin: Default response on closing unsaved doc should be Cancel.
src/ghex-application-window.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/ghex-application-window.c b/src/ghex-application-window.c
index 9ef0bed..b93f6f3 100644
--- a/src/ghex-application-window.c
+++ b/src/ghex-application-window.c
@@ -461,6 +461,7 @@ close_doc_confirmation_dialog (GHexApplicationWindow *self, AdwTabPage *page)
_("_Discard Changes"), GTK_RESPONSE_REJECT,
_("_Go Back"), GTK_RESPONSE_CANCEL,
NULL);
+ gtk_dialog_set_default_response (GTK_DIALOG(dialog), GTK_RESPONSE_CANCEL);
extra_user_data = page;
g_signal_connect (dialog, "response",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]