mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-05 16:09:07 -04:00
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.
12 lines
399 B
XML
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>
|