Make builder template factories use a subscope

This commit is contained in:
James Westman 2023-04-28 20:42:46 -05:00
parent a2eaaa26fe
commit 9dcd06de51
6 changed files with 46 additions and 0 deletions

15
tests/samples/subscope.ui Normal file
View file

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
<object class="GtkBuilderListItemFactory">
<property name="bytes"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="GtkListItem">
<property name="child">
<object class="GtkLabel" id="label"></object>
</property>
</template>
</interface>]]></property>
</object>
<object class="GtkLabel" id="label"></object>
</interface>