[vala] Declare base properties of inherited interface implementations



commit c2716f6ce1cdf718cdd6df3b14c12cf94fddcd25
Author: Jürg Billeter <j bitron ch>
Date:   Wed Sep 16 16:59:16 2009 +0200

    Declare base properties of inherited interface implementations

 codegen/valagtypemodule.vala |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/codegen/valagtypemodule.vala b/codegen/valagtypemodule.vala
index 75912b5..2d41d97 100644
--- a/codegen/valagtypemodule.vala
+++ b/codegen/valagtypemodule.vala
@@ -1374,10 +1374,14 @@ internal class Vala.GTypeModule : GErrorModule {
 				var ciface = new CCodeIdentifier ("iface");
 
 				if (base_property.get_accessor != null) {
+					generate_property_accessor_declaration (base_property.get_accessor, source_declarations);
+
 					string cname = base_property.get_accessor.get_cname ();
 					init_block.add_statement (new CCodeExpressionStatement (new CCodeAssignment (new CCodeMemberAccess.pointer (ciface, "get_%s".printf (prop.name)), new CCodeIdentifier (cname))));
 				}
 				if (base_property.set_accessor != null) {
+					generate_property_accessor_declaration (base_property.set_accessor, source_declarations);
+
 					string cname = base_property.set_accessor.get_cname ();
 					init_block.add_statement (new CCodeExpressionStatement (new CCodeAssignment (new CCodeMemberAccess.pointer (ciface, "set_%s".printf (prop.name)), new CCodeIdentifier (cname))));
 				}



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