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:
parent
5956aa6460
commit
ecc32af664
1 changed files with 7 additions and 0 deletions
|
|
@ -45,6 +45,8 @@ mod imp {
|
||||||
#[template_child]
|
#[template_child]
|
||||||
folder: TemplateChild<adw::ActionRow>,
|
folder: TemplateChild<adw::ActionRow>,
|
||||||
#[template_child]
|
#[template_child]
|
||||||
|
folder_button: TemplateChild<gtk::Button>,
|
||||||
|
#[template_child]
|
||||||
uri: TemplateChild<adw::ActionRow>,
|
uri: TemplateChild<adw::ActionRow>,
|
||||||
|
|
||||||
#[template_child]
|
#[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();
|
self.update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue