]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
codegen: use real function in set/get property also for ConcreteAccessor
authorLuca Bruno <lucabru@src.gnome.org>
Thu, 12 Mar 2015 17:27:06 +0000 (18:27 +0100)
committerLuca Bruno <lucabru@src.gnome.org>
Fri, 13 Mar 2015 14:08:39 +0000 (15:08 +0100)
Fixes bug 743049

codegen/valagobjectmodule.vala

index 05450b29ad418d06897d5858adbab6c8a0df990e..79629afa3febe16b3c73d839843ed74243f69b3e 100644 (file)
@@ -207,7 +207,7 @@ public class Vala.GObjectModule : GTypeModule {
                        }
 
                        CCodeExpression cfunc;
-                       if (!get_ccode_no_accessor_method (base_prop)) {
+                       if (!get_ccode_no_accessor_method (base_prop) && !get_ccode_concrete_accessor (base_prop)) {
                                cfunc = new CCodeIdentifier (get_ccode_name (base_prop.get_accessor));
                        } else {
                                // use the static real function as helper
@@ -314,7 +314,7 @@ public class Vala.GObjectModule : GTypeModule {
                        }
 
                        CCodeExpression cfunc;
-                       if (!get_ccode_no_accessor_method (base_prop)) {
+                       if (!get_ccode_no_accessor_method (base_prop) && !get_ccode_concrete_accessor (base_prop)) {
                                cfunc = new CCodeIdentifier (get_ccode_name (base_prop.set_accessor));
                        } else {
                                // use the static real function as helper