mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
Add a test that has a labeled-by relation in it
This commit is contained in:
parent
f76c439897
commit
5c1b0b005e
11
tests/a11y/mnemonic.txt
Normal file
11
tests/a11y/mnemonic.txt
Normal file
@ -0,0 +1,11 @@
|
||||
window1
|
||||
"window"
|
||||
box1
|
||||
"filler"
|
||||
label1
|
||||
"label"
|
||||
name: Entry:
|
||||
label-for: entry1
|
||||
entry1
|
||||
"text"
|
||||
labelled-by: label1
|
26
tests/a11y/mnemonic.ui
Normal file
26
tests/a11y/mnemonic.ui
Normal file
@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<!-- interface-requires gtk+ 3.0 -->
|
||||
<object class="GtkWindow" id="window1">
|
||||
<property name="can_focus">False</property>
|
||||
<property name="type">popup</property>
|
||||
<child>
|
||||
<object class="GtkBox" id="box1">
|
||||
<child>
|
||||
<object class="GtkLabel" id="label1">
|
||||
<property name="label" translatable="yes">_Entry:</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="mnemonic_widget">entry1</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkEntry" id="entry1">
|
||||
<property name="text" translatable="yes">text</property>
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
Loading…
Reference in New Issue
Block a user