From: Jürg Billeter Date: Wed, 17 Jun 2009 05:47:35 +0000 (+0200) Subject: Inherit ref_function_void CCode attribute X-Git-Tag: 0.7.4~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17cc4e892c0364a869f5c2a8f7e6d1c9626ca088;p=thirdparty%2Fvala.git Inherit ref_function_void CCode attribute Fixes bug 586077. --- diff --git a/vala/valaclass.vala b/vala/valaclass.vala index 7d9a8cda2..51efba31b 100644 --- a/vala/valaclass.vala +++ b/vala/valaclass.vala @@ -74,7 +74,17 @@ public class Vala.Class : ObjectTypeSymbol { * Specifies wheather the ref function returns void instead of the * object. */ - public bool ref_function_void { get; set; } + public bool ref_function_void { + get { + if (base_class != null) { + return base_class.ref_function_void; + } + return _ref_function_void; + } + set { + _ref_function_void = value; + } + } /** * The name of the function to use to check whether a value is an instance of @@ -100,6 +110,7 @@ public class Vala.Class : ObjectTypeSymbol { private string type_id; private string ref_function; private string unref_function; + private bool _ref_function_void; private string ref_sink_function; private string param_spec_function; private string copy_function;