Suppress unused warning on announce() accessibility helper
This commit is contained in:
@@ -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<gtk::Widget>, text: &str) {
|
||||
let label = gtk::Label::builder()
|
||||
.label(text)
|
||||
|
||||
Reference in New Issue
Block a user