language: Add closure expressions

This commit is contained in:
James Westman 2022-12-24 21:46:03 -06:00
parent 5cf9b63547
commit 59aa054c4c
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6
10 changed files with 96 additions and 7 deletions

View file

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
<object class="GtkLabel" id="my-label">
<binding name="label">
<closure function="my-closure" type="gchararray">
<lookup name="margin-bottom" type="GtkLabel">
<constant>my-label</constant>
</lookup>
</closure>
</binding>
</object>
</interface>