mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Make template parent optional
Not recommended, since you lose some type checking.
This commit is contained in:
parent
1897478480
commit
6b78338d1a
5 changed files with 24 additions and 8 deletions
3
tests/samples/template_no_parent.blp
Normal file
3
tests/samples/template_no_parent.blp
Normal file
|
@ -0,0 +1,3 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
template GtkListItem {}
|
5
tests/samples/template_no_parent.ui
Normal file
5
tests/samples/template_no_parent.ui
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<requires lib="gtk" version="4.0"/>
|
||||
<template class="GtkListItem"></template>
|
||||
</interface>
|
Loading…
Add table
Add a link
Reference in a new issue