mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
decompiler: Use bind instead of bind-property
This commit is contained in:
parent
6bae860326
commit
e44494e6e2
2 changed files with 4 additions and 4 deletions
|
@ -295,7 +295,7 @@ def decompile_property(
|
|||
flags += " inverted"
|
||||
if "bidirectional" in bind_flags:
|
||||
flags += " bidirectional"
|
||||
ctx.print(f"{name}: bind-property {bind_source}.{bind_property}{flags};")
|
||||
ctx.print(f"{name}: bind {bind_source}.{bind_property}{flags};")
|
||||
elif truthy(translatable):
|
||||
comments, translatable = decompile_translatable(
|
||||
cdata, translatable, context, comments
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
Box {
|
||||
visible: bind-property box2.visible inverted;
|
||||
orientation: bind-property box2.orientation;
|
||||
spacing: bind-property box2.spacing no-sync-create;
|
||||
visible: bind box2.visible inverted;
|
||||
orientation: bind box2.orientation;
|
||||
spacing: bind box2.spacing no-sync-create;
|
||||
}
|
||||
|
||||
Box box2 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue