From: Luca Bruno Date: Thu, 7 Jul 2011 15:36:41 +0000 (+0200) Subject: On-demand Method.has_construct_function X-Git-Tag: 0.13.2~62 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cb7df63552b6542d1f9780cbbd4ac85eec8aa234;p=thirdparty%2Fvala.git On-demand Method.has_construct_function --- diff --git a/vala/valamethod.vala b/vala/valamethod.vala index a0bf8bce4..af24d2928 100644 --- a/vala/valamethod.vala +++ b/vala/valamethod.vala @@ -205,7 +205,14 @@ public class Vala.Method : Subroutine { * Specifies whether a construct function with a GType parameter is * available. This is only applicable to creation methods. */ - public bool has_construct_function { get; set; default = true; } + public bool has_construct_function { + get { + return get_attribute_bool ("CCode", "has_construct_function", true); + } + set { + set_attribute_bool ("CCode", "has_construct_function", value); + } + } public bool has_generic_type_parameter { get; set; } @@ -463,9 +470,6 @@ public class Vala.Method : Subroutine { if (a.has_argument ("has_new_function")) { has_new_function = a.get_bool ("has_new_function"); } - if (a.has_argument ("has_construct_function")) { - has_construct_function = a.get_bool ("has_construct_function"); - } if (a.has_argument ("generic_type_pos")) { has_generic_type_parameter = true; generic_type_parameter_position = a.get_double ("generic_type_pos");