[nautilus/wip/corey/a11y: 2/3] general: Set labelled-by for view cells
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/corey/a11y: 2/3] general: Set labelled-by for view cells
- Date: Wed, 31 Aug 2022 15:39:36 +0000 (UTC)
commit 261ebe96823501b7aaf937254664b910fcebbe8b
Author: Corey Berla <corey berla me>
Date: Tue Aug 30 12:01:26 2022 -0700
general: Set labelled-by for view cells
In gtk4, we need to set labelled-by to help a11y programs know what
it currently selected.
Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/2460
src/resources/ui/nautilus-grid-cell.ui | 3 +++
src/resources/ui/nautilus-name-cell.ui | 3 +++
2 files changed, 6 insertions(+)
---
diff --git a/src/resources/ui/nautilus-grid-cell.ui b/src/resources/ui/nautilus-grid-cell.ui
index 2ca1f2755..cfc0ced89 100644
--- a/src/resources/ui/nautilus-grid-cell.ui
+++ b/src/resources/ui/nautilus-grid-cell.ui
@@ -3,6 +3,9 @@
<requires lib="gtk" version="4.0"/>
<template class="NautilusGridCell" parent="NautilusViewCell">
<property name="valign">start</property>
+ <accessibility>
+ <relation name="labelled-by">label</relation>
+ </accessibility>
<child>
<object class="AdwClamp">
<property name="maximum-size">0</property>
diff --git a/src/resources/ui/nautilus-name-cell.ui b/src/resources/ui/nautilus-name-cell.ui
index f2105fb55..246aa3ab2 100644
--- a/src/resources/ui/nautilus-name-cell.ui
+++ b/src/resources/ui/nautilus-name-cell.ui
@@ -2,6 +2,9 @@
<interface>
<requires lib="gtk" version="4.0"/>
<template class="NautilusNameCell" parent="NautilusViewCell">
+ <accessibility>
+ <relation name="labelled-by">label</relation>
+ </accessibility>
<child>
<object class="GtkBox">
<property name="spacing">6</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]