From ecc32af66490a63192a296e65743519f936e3caa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Tyrychtr?= Date: Mon, 24 Jun 2024 15:12:14 +0200 Subject: [PATCH] a11y: Ensure that the "Open containing folder" label is read Just get rid of the in this case unwanted relations on the button. Fixes #374. Part-of: --- src/widgets/properties_view.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/widgets/properties_view.rs b/src/widgets/properties_view.rs index 3a7d14f..9eb9d8b 100644 --- a/src/widgets/properties_view.rs +++ b/src/widgets/properties_view.rs @@ -45,6 +45,8 @@ mod imp { #[template_child] folder: TemplateChild, #[template_child] + folder_button: TemplateChild, + #[template_child] uri: TemplateChild, #[template_child] @@ -137,6 +139,11 @@ mod imp { ), ); + self.folder_button + .reset_relation(gtk::AccessibleRelation::LabelledBy); + self.folder_button + .reset_relation(gtk::AccessibleRelation::DescribedBy); + self.update(); }