blueprint-compiler/tests/samples/accessibility.ui
James Westman fd55a5abf2
Fix flag values
Enums/bitfields have a C identifier, a GLib nick, and a GIR name. The
last two are usually the same except the nick uses '-' and the GIR name
uses '_'. It is confusing.

Blueprint tries to use GIR names for everything, but GTK requires a C
identifier or GLib nick for enum and bitfield values. Blueprint was
sometimes passing the GIR name through instead of finding one of the
other names. Fixed by always emitting the C identifier for enums and
bitfields where the GIR type is known.
2022-06-10 13:30:12 -05:00

12 lines
426 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">GTK_ACCESSIBLE_TRISTATE_TRUE</state>
</accessibility>
</object>
<object class="GtkLabel" id="my_label"></object>
</interface>