From 20cbde8ce641b0254ede1458c5a83c548a8a4755 Mon Sep 17 00:00:00 2001 From: yggverse Date: Tue, 18 Mar 2025 22:06:51 +0200 Subject: [PATCH] add comments --- .../window/tab/item/page/navigation/request/identity/common.rs | 3 +++ .../tab/item/page/navigation/request/identity/unsupported.rs | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/app/browser/window/tab/item/page/navigation/request/identity/common.rs b/src/app/browser/window/tab/item/page/navigation/request/identity/common.rs index 4bbe55bb..4b7fee1c 100644 --- a/src/app/browser/window/tab/item/page/navigation/request/identity/common.rs +++ b/src/app/browser/window/tab/item/page/navigation/request/identity/common.rs @@ -52,6 +52,9 @@ impl Common for AlertDialog { .extra_child(&form.g_box) .build(); + // @TODO since 4.10 + // https://docs.gtk.org/gtk4/method.AlertDialog.set_cancel_button.html + alert_dialog.add_responses(&[ RESPONSE_CANCEL, // RESPONSE_MANAGE, diff --git a/src/app/browser/window/tab/item/page/navigation/request/identity/unsupported.rs b/src/app/browser/window/tab/item/page/navigation/request/identity/unsupported.rs index dd20ef28..cc491e95 100644 --- a/src/app/browser/window/tab/item/page/navigation/request/identity/unsupported.rs +++ b/src/app/browser/window/tab/item/page/navigation/request/identity/unsupported.rs @@ -23,6 +23,9 @@ impl Unsupported for AlertDialog { .default_response(RESPONSE_QUIT.0) .build(); + // @TODO since 4.10 + // https://docs.gtk.org/gtk4/method.AlertDialog.set_cancel_button.html + // Set response variants alert_dialog.add_responses(&[RESPONSE_QUIT]);