blueprint-compiler/tests/samples/accessibility.ui
James Westman 6c67e1fc5a
xml: Fix flags and enums
GtkBuilder XML uses enum nicknames, full names, or integer values, but
we accept GIR names, so passing those through doesn't work if the name
has an underscore (which traditionally turns into a dash in the
nickname). Avoid the problem by always writing the integer value of the
enum member.
2022-12-19 15:15:25 -06:00

12 lines
399 B
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
<object class="GtkBox">
<accessibility>
<property name="label" translatable="true">Hello, world!</property>
<relation name="labelled-by">my_label</relation>
<state name="checked">1</state>
</accessibility>
</object>
<object class="GtkLabel" id="my_label"></object>
</interface>