Fix simple bindings with template soure

This commit is contained in:
James Westman 2023-05-16 17:14:34 -05:00
parent 8f3682135b
commit e4bad039b0
4 changed files with 23 additions and 1 deletions

View file

@ -0,0 +1,5 @@
using Gtk 4.0;
template $MyTemplate {
prop: bind template.prop2;
}

View file

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
<template class="MyTemplate">
<property name="prop" bind-source="MyTemplate" bind-property="prop2" bind-flags="sync-create"/>
</template>
</interface>

View file

@ -178,6 +178,7 @@ class TestSamples(unittest.TestCase):
"template_binding",
"template_binding_extern",
"template_no_parent",
"template_simple_binding",
"typeof",
"unchecked_class",
]