From: Rico Tzschichholz Date: Mon, 18 Jan 2021 14:38:51 +0000 (+0100) Subject: vala: Let method representing property accessor inherit GIR.visible attribute X-Git-Tag: 0.51.1~92 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d138ee967e1ca0b60fff0e52806e86ad046c1bb2;p=thirdparty%2Fvala.git vala: Let method representing property accessor inherit GIR.visible attribute --- diff --git a/tests/girwriter/GirTest-1.0.gir-expected b/tests/girwriter/GirTest-1.0.gir-expected index abac75dbd..06105bbaf 100644 --- a/tests/girwriter/GirTest-1.0.gir-expected +++ b/tests/girwriter/GirTest-1.0.gir-expected @@ -736,12 +736,12 @@ - + - + diff --git a/vala/valapropertyaccessor.vala b/vala/valapropertyaccessor.vala index 0c1bf50b3..393284301 100644 --- a/vala/valapropertyaccessor.vala +++ b/vala/valapropertyaccessor.vala @@ -134,6 +134,9 @@ public class Vala.PropertyAccessor : Subroutine { m.is_abstract = prop.is_abstract; m.is_virtual = prop.is_virtual; m.this_parameter = prop.this_parameter; + + // Inherit important attributes + m.copy_attribute_bool (prop, "GIR", "visible"); } return m;