summaryrefslogtreecommitdiff
path: root/vapigen
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2009-01-14 22:44:41 +0000
committerJürg Billeter <juergbi@src.gnome.org>2009-01-14 22:44:41 +0000
commitd18e5da27d158c88d68a4b2518dc3463f2a1c3a8 (patch)
tree3d393b3ac1889e472abd0fba7d49064373b300d0 /vapigen
parent702133557cf58a343c775ac5ca5e91135462dc7f (diff)
downloadvala-d18e5da27d158c88d68a4b2518dc3463f2a1c3a8.tar.gz
Improve output for owned property getters
2009-01-14 Jürg Billeter <j@bitron.ch> * vala/valacodewriter.vala: Improve output for owned property getters * vapigen/valagidlparser.vala: Getters of properties without accessor have to return owned value * vapi/: regenerated svn path=/trunk/; revision=2340
Diffstat (limited to 'vapigen')
-rw-r--r--vapigen/valagidlparser.vala1
1 files changed, 1 insertions, 0 deletions
diff --git a/vapigen/valagidlparser.vala b/vapigen/valagidlparser.vala
index 4a9dbf45b..160bc9fa3 100644
--- a/vapigen/valagidlparser.vala
+++ b/vapigen/valagidlparser.vala
@@ -967,6 +967,7 @@ public class Vala.GIdlParser : CodeVisitor {
if (prop.get_accessor != null && !current_type_symbol_set.contains (getter)) {
prop.no_accessor_method = true;
+ prop.get_accessor.value_type.value_owned = true;
}
var setter = "set_%s".printf (prop.name);