From e44494e6e2de0389945d7a4b15a1f9d1d35d110c Mon Sep 17 00:00:00 2001 From: Sonny Piers Date: Sun, 16 Jun 2024 14:20:54 +0200 Subject: [PATCH] decompiler: Use bind instead of bind-property --- blueprintcompiler/decompiler.py | 2 +- tests/samples/property_binding_dec.blp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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 {