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: <https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/413>
This commit is contained in:
Lukáš Tyrychtr 2024-06-24 15:12:14 +02:00 • committed by Marge Bot
parent 5956aa6460
commit ecc32af664

View file

@ -45,6 +45,8 @@ mod imp {
#[template_child]
folder: TemplateChild<adw::ActionRow>,
#[template_child]
folder_button: TemplateChild<gtk::Button>,
#[template_child]
uri: TemplateChild<adw::ActionRow>,
#[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();
}