Fix property access for virtual and interface properties
authorJürg Billeter <j@bitron.ch>
Mon, 16 Jun 2008 12:42:47 +0000 (12:42 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Mon, 16 Jun 2008 12:42:47 +0000 (12:42 +0000)
2008-06-16  Jürg Billeter  <j@bitron.ch>

* gobject/valaccodememberaccessbinding.vala:

Fix property access for virtual and interface properties

svn path=/trunk/; revision=1599

ChangeLog
gobject/valaccodememberaccessbinding.vala

index b0cfbfc..8812b46 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-06-16  Jürg Billeter  <j@bitron.ch>
+
+       * gobject/valaccodememberaccessbinding.vala:
+
+       Fix property access for virtual and interface properties
+
 2008-06-16  Jaap A. Haitsma  <jaap@haitsma.org>
 
        * vapi/packages/gtk+-2.0/gtk+-2.0.metadata:
@@ -11,7 +17,8 @@
        * vala/valageniescanner.vala:
        * vala/valagenietokentype.vala:
                
-       added built in list and dict (HashMap) support with automatic type dependent hash and equal functions
+       added built in list and dict (HashMap) support with automatic type
+       dependent hash and equal functions
 
 2008-06-16  Jürg Billeter  <j@bitron.ch>
 
index a67228c..2b7fba7 100644 (file)
@@ -119,7 +119,9 @@ public class Vala.CCodeMemberAccessBinding : CCodeExpressionBinding {
 
                        if (prop.get_accessor != null &&
                            prop.get_accessor.automatic_body &&
-                           codegen.current_type_symbol == prop.parent_symbol) {
+                           codegen.current_type_symbol == prop.parent_symbol &&
+                           prop.base_property == null &&
+                           prop.base_interface_property == null) {
                                CCodeExpression inst;
                                inst = new CCodeMemberAccess.pointer (pub_inst, "priv");
                                expr.ccodenode = new CCodeMemberAccess.pointer (inst, prop.field.get_cname());