summaryrefslogtreecommitdiff
path: root/codegen
diff options
context:
space:
mode:
authorPrinceton Ferro <princetonferro@gmail.com>2021-07-14 23:52:59 -0400
committerRico Tzschichholz <ricotz@ubuntu.com>2021-07-23 13:00:14 +0200
commitf25b5b124124776eeab6e59396e91e93a9c11f1d (patch)
treeeb94f94c8d9160f40e3cbb73ff27832f512ac92b /codegen
parent2848b530e80c2404de8af29ab2805ffc6b381fbe (diff)
downloadvala-f25b5b124124776eeab6e59396e91e93a9c11f1d.tar.gz
girwriter: Add explicit writable attribute to all field elements
This addresses issues with bindings to Vala structs.
Diffstat (limited to 'codegen')
-rw-r--r--codegen/valagirwriter.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/codegen/valagirwriter.vala b/codegen/valagirwriter.vala
index 4be2b370a..49a8112a2 100644
--- a/codegen/valagirwriter.vala
+++ b/codegen/valagirwriter.vala
@@ -1021,7 +1021,7 @@ public class Vala.GIRWriter : CodeVisitor {
}
write_indent ();
- buffer.append_printf ("<field name=\"%s\"", get_ccode_name (f));
+ buffer.append_printf ("<field name=\"%s\" writable=\"1\"", get_ccode_name (f));
if (f.variable_type.nullable) {
buffer.append_printf (" nullable=\"1\"");
}