summaryrefslogtreecommitdiff
path: root/codegen/valagobjectmodule.vala
diff options
context:
space:
mode:
authorLuca Bruno <lucabru@src.gnome.org>2015-03-12 18:27:06 +0100
committerLuca Bruno <lucabru@src.gnome.org>2015-03-13 15:08:39 +0100
commit9b1a55a42082637c1559ca00bb46bb9ac739095d (patch)
tree2dd75457f8b72e9ee60273be3d804f9e1004440d /codegen/valagobjectmodule.vala
parente19e9de4214280532572b28a558c527b70e9ddc9 (diff)
downloadvala-9b1a55a42082637c1559ca00bb46bb9ac739095d.tar.gz
codegen: use real function in set/get property also for ConcreteAccessor
Fixes bug 743049
Diffstat (limited to 'codegen/valagobjectmodule.vala')
-rw-r--r--codegen/valagobjectmodule.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/codegen/valagobjectmodule.vala b/codegen/valagobjectmodule.vala
index 05450b29a..79629afa3 100644
--- a/codegen/valagobjectmodule.vala
+++ b/codegen/valagobjectmodule.vala
@@ -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