mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-05 16:09:07 -04:00
parent
012fc61926
commit
05f65a86a5
4 changed files with 41 additions and 2 deletions
5
tests/samples/bind_settings.blp
Normal file
5
tests/samples/bind_settings.blp
Normal file
|
@ -0,0 +1,5 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
Label {
|
||||
label: bind-settings "org.example.Settings" "my-label" inverted get-no-changes;
|
||||
}
|
7
tests/samples/bind_settings.ui
Normal file
7
tests/samples/bind_settings.ui
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<requires lib="gtk" version="4.0"/>
|
||||
<object class="GtkLabel">
|
||||
<property name="label" bind-settings-schema="org.example.Settings" bind-settings-key="my-label" bind-flags="invert-boolean|get-no-changes"/>
|
||||
</object>
|
||||
</interface>
|
Loading…
Add table
Add a link
Reference in a new issue