From: Rico Tzschichholz Date: Sat, 20 Jan 2018 09:41:43 +0000 (+0100) Subject: girparser: Set NoAccessorMethod for non-readable and construct-only properties X-Git-Tag: 0.34.15~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b673a3749f801be72a895b9eb7b333c4c6a44e8;p=thirdparty%2Fvala.git girparser: Set NoAccessorMethod for non-readable and construct-only properties --- diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala index d169cd7b7..50b71f094 100644 --- a/vala/valagirparser.vala +++ b/vala/valagirparser.vala @@ -988,7 +988,7 @@ public class Vala.GirParser : CodeVisitor { } } - prop.set_attribute ("NoAccessorMethod", false); + prop.set_attribute ("NoAccessorMethod", (readable == "0" && construct_only == "1")); if (prop.get_accessor != null) { var m = getter != null ? getter.symbol as Method : null; // ensure getter vfunc if the property is abstract