decompiler: Use bind instead of bind-property

This commit is contained in:
Sonny Piers 2024-06-16 14:20:54 +02:00 committed by James Westman
parent 6bae860326
commit e44494e6e2
2 changed files with 4 additions and 4 deletions

View file

@ -295,7 +295,7 @@ def decompile_property(
flags += " inverted" flags += " inverted"
if "bidirectional" in bind_flags: if "bidirectional" in bind_flags:
flags += " bidirectional" 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): elif truthy(translatable):
comments, translatable = decompile_translatable( comments, translatable = decompile_translatable(
cdata, translatable, context, comments cdata, translatable, context, comments

View file

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