Change sync-create to no-sync-create

Fixes #31
This commit is contained in:
James Westman 2022-01-26 23:30:19 -06:00
parent 3bdcc83c4e
commit 32d4769f65
4 changed files with 14 additions and 13 deletions

View file

@ -249,13 +249,13 @@ def decompile_property(ctx, gir, name, cdata, bind_source=None, bind_property=No
ctx.end_block_with(";")
elif bind_source:
flags = ""
if bind_flags:
if "sync-create" in bind_flags:
flags += " sync-create"
if "invert-boolean" in bind_flags:
flags += " inverted"
if "bidirectional" in bind_flags:
flags += " bidirectional"
bind_flags = bind_flags or []
if "sync-create" not in bind_flags:
flags += " no-sync-create"
if "invert-boolean" in bind_flags:
flags += " inverted"
if "bidirectional" in bind_flags:
flags += " bidirectional"
ctx.print(f"{name}: bind {bind_source}.{bind_property}{flags};")
elif truthy(translatable):
if context is not None: