From: Jürg Billeter Date: Wed, 16 Sep 2009 14:59:16 +0000 (+0200) Subject: Declare base properties of inherited interface implementations X-Git-Tag: 0.7.6~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2716f6ce1cdf718cdd6df3b14c12cf94fddcd25;p=thirdparty%2Fvala.git Declare base properties of inherited interface implementations --- diff --git a/codegen/valagtypemodule.vala b/codegen/valagtypemodule.vala index 75912b529..2d41d9738 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)))); }