info-overview: Label the system details that they make sense with a screen reader

Before this, the user could easily only access the property values,
not te names or group titles.
This commit is contained in:
Lukáš Tyrychtr 2023-07-18 13:41:21 +02:00 committed by Felipe Borges
parent c2ef0f6e5e
commit 8c361e28cc
2 changed files with 15 additions and 2 deletions

View file

@ -1,9 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="CcInfoEntry" parent="GtkBox">
<property name="accessible-role">group</property>
<property name="orientation">horizontal</property>
<property name="margin-top">6</property>
<property name="margin-bottom">6</property>
<accessibility>
<relation name="labelled-by">prop</relation>
<property name="label">Info entry</property>
</accessibility>
<!-- Prop -->
<child>

View file

@ -51,14 +51,18 @@
<!-- Hardware Information -->
<child>
<object class="GtkBox">
<property name="accessible-role">group</property>
<property name="orientation">vertical</property>
<property name="margin-top">6</property>
<property name="margin-bottom">6</property>
<property name="margin-start">6</property>
<property name="margin-end">6</property>
<accessibility>
<relation name="labelled-by">hardware_info_label</relation>
</accessibility>
<child>
<object class="GtkLabel">
<object class="GtkLabel" id="hardware_info_label">
<property name="label" translatable="yes">Hardware Information</property>
<property name="halign">start</property>
<attributes>
@ -108,14 +112,18 @@
<!-- Software Information -->
<child>
<object class="GtkBox">
<property name="accessible-role">group</property>
<property name="orientation">vertical</property>
<property name="margin-top">6</property>
<property name="margin-bottom">6</property>
<property name="margin-start">6</property>
<property name="margin-end">6</property>
<accessibility>
<relation name="labelled-by">software_info_label</relation>
</accessibility>
<child>
<object class="GtkLabel">
<object class="GtkLabel" id="software_info_label">
<property name="label" translatable="yes">Software Information</property>
<property name="halign">start</property>
<attributes>