mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
tests: add test for inverted
binding flag
This commit is contained in:
parent
e4283ed0c1
commit
f8c96abfc5
2 changed files with 8 additions and 3 deletions
|
@ -1,9 +1,11 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
Box {
|
||||
visible: bind box2.visible sync-create;
|
||||
visible: bind box2.visible inverted;
|
||||
orientation: bind box2.orientation;
|
||||
spacing: bind box2.spacing sync-create;
|
||||
}
|
||||
|
||||
Box box2 {
|
||||
spacing: 6;
|
||||
}
|
||||
|
|
|
@ -2,8 +2,11 @@
|
|||
<interface>
|
||||
<requires lib="gtk" version="4.0"/>
|
||||
<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="spacing" bind-source="box2" bind-property="spacing" bind-flags="sync-create"/>
|
||||
</object>
|
||||
<object class="GtkBox" id="box2">
|
||||
<property name="spacing">6</property>
|
||||
</object>
|
||||
<object class="GtkBox" id="box2"></object>
|
||||
</interface>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue