Skip to content

Commit 9ff8119

Browse files
authored
DiskGrid: improve screen reader labels (#890)
1 parent d3e4889 commit 9ff8119

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Widgets/DiskGrid.vala

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ public class Installer.DiskButton : Gtk.CheckButton {
3232
);
3333
}
3434

35+
class construct {
36+
set_accessible_role (RADIO);
37+
}
38+
3539
construct {
3640
add_css_class ("image-button");
3741

@@ -72,5 +76,11 @@ public class Installer.DiskButton : Gtk.CheckButton {
7276
config.disk = disk_path;
7377
}
7478
});
79+
80+
update_property (
81+
Gtk.AccessibleProperty.LABEL, disk_name,
82+
Gtk.AccessibleProperty.DESCRIPTION, size_label.label,
83+
-1
84+
);
7585
}
7686
}

0 commit comments

Comments
 (0)