diff --git a/src/ui/widgets.rs b/src/ui/widgets.rs index 238f979..d3bc9f8 100644 --- a/src/ui/widgets.rs +++ b/src/ui/widgets.rs @@ -156,6 +156,7 @@ pub fn copy_button(text_to_copy: &str, toast_overlay: Option<&adw::ToastOverlay> /// Inserts a hidden label with AccessibleRole::Alert into the given container, /// which causes AT-SPI to announce the text to screen readers. /// The label auto-removes after a short delay. +#[allow(dead_code)] pub fn announce(container: &impl gtk::prelude::IsA, text: &str) { let label = gtk::Label::builder() .label(text)