mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
WIP: List item factory syntax
This commit is contained in:
parent
3416546eac
commit
fdf91dc08e
10 changed files with 145 additions and 9 deletions
|
@ -260,7 +260,7 @@ def decompile_property(ctx, gir, name, cdata, bind_source=None, bind_property=No
|
|||
flags += " inverted"
|
||||
if "bidirectional" in bind_flags:
|
||||
flags += " bidirectional"
|
||||
ctx.print(f"{name}: bind {bind_source}.{bind_property}{flags};")
|
||||
ctx.print(f"{name}: bind-prop {bind_source}.{bind_property}{flags};")
|
||||
elif truthy(translatable):
|
||||
if context is not None:
|
||||
ctx.print(f"{name}: C_(\"{escape_quote(context)}\", \"{escape_quote(cdata)}\");")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue