mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Allow for multiple a11y properties
This commit is contained in:
parent
b308adc3af
commit
3dfce3bbe0
10 changed files with 103 additions and 7 deletions
15
tests/samples/accessibility_multiple_labelled_by.blp
Normal file
15
tests/samples/accessibility_multiple_labelled_by.blp
Normal file
|
@ -0,0 +1,15 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
Box {
|
||||
accessibility {
|
||||
label: _("Hello, world!");
|
||||
labelled-by: [my_label1, my_label2, my_label3];
|
||||
checked: true;
|
||||
}
|
||||
}
|
||||
|
||||
Label my_label1 {}
|
||||
|
||||
Label my_label2 {}
|
||||
|
||||
Label my_label3 {}
|
21
tests/samples/accessibility_multiple_labelled_by.ui
Normal file
21
tests/samples/accessibility_multiple_labelled_by.ui
Normal file
|
@ -0,0 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
DO NOT EDIT!
|
||||
This file was @generated by blueprint-compiler. Instead, edit the
|
||||
corresponding .blp file and regenerate this file with blueprint-compiler.
|
||||
-->
|
||||
<interface>
|
||||
<requires lib="gtk" version="4.0"/>
|
||||
<object class="GtkBox">
|
||||
<accessibility>
|
||||
<property name="label" translatable="yes">Hello, world!</property>
|
||||
<relation name="labelled-by">my_label1</relation>
|
||||
<relation name="labelled-by">my_label2</relation>
|
||||
<relation name="labelled-by">my_label3</relation>
|
||||
<state name="checked">1</state>
|
||||
</accessibility>
|
||||
</object>
|
||||
<object class="GtkLabel" id="my_label1"></object>
|
||||
<object class="GtkLabel" id="my_label2"></object>
|
||||
<object class="GtkLabel" id="my_label3"></object>
|
||||
</interface>
|
Loading…
Add table
Add a link
Reference in a new issue