diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2023-02-05 19:33:15 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2023-02-05 19:33:15 +0100 |
commit | 7e5024ae2694c5406310314933235b68d79b1fca (patch) | |
tree | 3df91a30736373efada658911b8c67a758ca675a /vala | |
parent | 37dd373f66403f8db3581c9216a5bdfdf6925a5f (diff) | |
download | vala-7e5024ae2694c5406310314933235b68d79b1fca.tar.gz |
vala: Allow more general usage of PropertyAccessor.get_method()
Diffstat (limited to 'vala')
-rw-r--r-- | vala/valapropertyaccessor.vala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vala/valapropertyaccessor.vala b/vala/valapropertyaccessor.vala index 979239d2e..0fbf4d32f 100644 --- a/vala/valapropertyaccessor.vala +++ b/vala/valapropertyaccessor.vala @@ -128,7 +128,7 @@ public class Vala.PropertyAccessor : Subroutine { m.copy_attribute_string (prop, "CCode", "array_length_type"); m.copy_attribute_bool (prop, "CCode", "array_null_terminated"); m.copy_attribute_bool (prop, "CCode", "delegate_target"); - } else if (writable) { + } else if (writable || construction) { m = new Method ("set_%s".printf (prop.name), new VoidType(), source_reference, comment); m.add_parameter (value_parameter.copy ()); } |