diff --git a/blueprintcompiler/decompiler.py b/blueprintcompiler/decompiler.py index 7e6c53b..483d6f6 100644 --- a/blueprintcompiler/decompiler.py +++ b/blueprintcompiler/decompiler.py @@ -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 diff --git a/tests/samples/property_binding_dec.blp b/tests/samples/property_binding_dec.blp index 7e74ab8..39e4458 100644 --- a/tests/samples/property_binding_dec.blp +++ b/tests/samples/property_binding_dec.blp @@ -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 {