[vala] Inherit ref_function_void CCode attribute



commit 17cc4e892c0364a869f5c2a8f7e6d1c9626ca088
Author: Jürg Billeter <j bitron ch>
Date:   Wed Jun 17 07:47:35 2009 +0200

    Inherit ref_function_void CCode attribute
    
    Fixes bug 586077.

 vala/valaclass.vala |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/vala/valaclass.vala b/vala/valaclass.vala
index 7d9a8cd..51efba3 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]