mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
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.
13 lines
395 B
XML
13 lines
395 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<requires lib="gtk" version="4.0"/>
|
|
<object class="GtkSizeGroup">
|
|
<property name="mode">GTK_SIZE_GROUP_HORIZONTAL</property>
|
|
<widgets>
|
|
<widget name="label"/>
|
|
<widget name="button"/>
|
|
</widgets>
|
|
</object>
|
|
<object class="GtkLabel" id="label"></object>
|
|
<object class="GtkButton" id="button"></object>
|
|
</interface>
|