gtk-demo: Set some accessible properties

Set labels in the builder demo. The ARIA authoring practices
say that both menubars and toolbars *must* have an accessible
label.
This commit is contained in:
Matthias Clasen 2020-11-04 12:53:23 -05:00
parent ba63aa76ca
commit f220a1e3c7

View File

@ -96,12 +96,18 @@
<child> <child>
<object class="GtkPopoverMenuBar" id="menubar1"> <object class="GtkPopoverMenuBar" id="menubar1">
<property name="menu-model">menubar</property> <property name="menu-model">menubar</property>
<accessibility>
<property name="label">Main Menu</property>
</accessibility>
</object> </object>
</child> </child>
<child> <child>
<object class="GtkBox" id="toolbar1"> <object class="GtkBox" id="toolbar1">
<property name="accessible-role">toolbar</property> <property name="accessible-role">toolbar</property>
<property name="css-classes">toolbar</property> <property name="css-classes">toolbar</property>
<accessibility>
<property name="label">Toolbar</property>
</accessibility>
<child> <child>
<object class="GtkButton"> <object class="GtkButton">
<property name="label" translatable="yes">New</property> <property name="label" translatable="yes">New</property>