]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
girwriter: construct-only properties don't have a setter method ae0d92068d1ae81372b519eed5d2b1c2a6a8c210
authorRico Tzschichholz <ricotz@ubuntu.com>
Thu, 14 Jun 2018 10:46:38 +0000 (12:46 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Thu, 14 Jun 2018 18:08:02 +0000 (20:08 +0200)
codegen/valagirwriter.vala

index ce96f8ea63d2c437f0a8e103909daf8a94e7e859..ce0eb52d37b1c7f9a2ac19a45523433f38adf805 100644 (file)
@@ -591,7 +591,7 @@ public class Vala.GIRWriter : CodeVisitor {
                                        buffer.append_printf ("</field>\n");
                                }
 
-                               if (prop.set_accessor != null) {
+                               if (prop.set_accessor != null && prop.set_accessor.writable) {
                                        var m = prop.set_accessor.get_method ();
                                        write_indent ();
                                        buffer.append_printf("<field name=\"%s\">\n", m.name);