mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Fix templates in bind-property
This commit is contained in:
parent
b5eca8b0b3
commit
3ebe5c72c1
4 changed files with 23 additions and 1 deletions
5
tests/samples/template_bind_property.blp
Normal file
5
tests/samples/template_bind_property.blp
Normal file
|
@ -0,0 +1,5 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
template $MyTemplate {
|
||||
object: bind-property template.object2;
|
||||
}
|
7
tests/samples/template_bind_property.ui
Normal file
7
tests/samples/template_bind_property.ui
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<requires lib="gtk" version="4.0"/>
|
||||
<template class="MyTemplate">
|
||||
<property name="object" bind-source="MyTemplate" bind-property="object2" bind-flags="sync-create"/>
|
||||
</template>
|
||||
</interface>
|
Loading…
Add table
Add a link
Reference in a new issue