blueprint-compiler/tests/samples/list_item_factory.ui
James Westman 7077a76ba0
WIP: List item factories
The current problem is that types aren't inferred properly for
GtkListItem.item (it's always considered a GObject, and Gtk needs more
type information than that, and cast expressions don't exist yet).
2022-07-23 15:10:29 -05:00

28 lines
787 B
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
<object class="GtkListView">
<property name="factory">
<object class="GtkBuilderListItemFactory">
<property name="bytes"><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
<template class="GtkListItem">
<property name="child">
<object class="GtkLabel">
<binding name="label">
<lookup name="label">
<lookup name="group">
<lookup name="item" type="GtkCheckButton">GtkListItem</lookup>
</lookup>
</lookup>
</binding>
</object>
</property>
</template>
</interface>]]></property>
</object>
</property>
</object>
</interface>