mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-06 16:19:07 -04:00
Support template without parent
This commit is contained in:
parent
896dd7f824
commit
adc2be1454
5 changed files with 28 additions and 2 deletions
5
tests/samples/template_orphan.blp
Normal file
5
tests/samples/template_orphan.blp
Normal file
|
@ -0,0 +1,5 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
template $TestTemplate {
|
||||
test-property: 'Hello, world';
|
||||
}
|
12
tests/samples/template_orphan.ui
Normal file
12
tests/samples/template_orphan.ui
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
DO NOT EDIT!
|
||||
This file was @generated by blueprint-compiler. Instead, edit the
|
||||
corresponding .blp file and regenerate this file with blueprint-compiler.
|
||||
-->
|
||||
<interface>
|
||||
<requires lib="gtk" version="4.0"/>
|
||||
<template class="TestTemplate">
|
||||
<property name="test-property">Hello, world</property>
|
||||
</template>
|
||||
</interface>
|
Loading…
Add table
Add a link
Reference in a new issue