mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-05 16:09:07 -04:00
Make builder template factories use a subscope
This commit is contained in:
parent
a2eaaa26fe
commit
9dcd06de51
6 changed files with 46 additions and 0 deletions
9
tests/samples/subscope.blp
Normal file
9
tests/samples/subscope.blp
Normal file
|
@ -0,0 +1,9 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
Gtk.BuilderListItemFactory {
|
||||
template {
|
||||
child: Gtk.Label label {};
|
||||
}
|
||||
}
|
||||
|
||||
Gtk.Label label {}
|
15
tests/samples/subscope.ui
Normal file
15
tests/samples/subscope.ui
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue