tests: add test for inverted binding flag

This commit is contained in:
Gleb Smirnov 2022-01-21 20:08:21 +03:00 committed by James Westman
parent e4283ed0c1
commit f8c96abfc5
2 changed files with 8 additions and 3 deletions

View file

@ -1,9 +1,11 @@
using Gtk 4.0; using Gtk 4.0;
Box { Box {
visible: bind box2.visible sync-create; visible: bind box2.visible inverted;
orientation: bind box2.orientation; orientation: bind box2.orientation;
spacing: bind box2.spacing sync-create;
} }
Box box2 { Box box2 {
spacing: 6;
} }

View file

@ -2,8 +2,11 @@
<interface> <interface>
<requires lib="gtk" version="4.0"/> <requires lib="gtk" version="4.0"/>
<object class="GtkBox"> <object class="GtkBox">
<property name="visible" bind-source="box2" bind-property="visible" bind-flags="sync-create"/> <property name="visible" bind-source="box2" bind-property="visible" bind-flags="invert-boolean"/>
<property name="orientation" bind-source="box2" bind-property="orientation"/> <property name="orientation" bind-source="box2" bind-property="orientation"/>
<property name="spacing" bind-source="box2" bind-property="spacing" bind-flags="sync-create"/>
</object>
<object class="GtkBox" id="box2">
<property name="spacing">6</property>
</object> </object>
<object class="GtkBox" id="box2"></object>
</interface> </interface>