summaryrefslogtreecommitdiff
path: root/vapigen
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2009-09-14 18:38:47 +0200
committerJürg Billeter <j@bitron.ch>2009-09-14 18:38:47 +0200
commit4ae14322ece626544204388cf84c11b5842bf3d4 (patch)
tree770dece3874b227d2ff8ec59c88bd42e04408a7b /vapigen
parent1bd3c326105c75a9bca21dfeb850ab1707a5f152 (diff)
downloadvala-4ae14322ece626544204388cf84c11b5842bf3d4.tar.gz
vapigen: Support owned_get metadata attribute for properties
Fixes bug 592462.
Diffstat (limited to 'vapigen')
-rw-r--r--vapigen/valagidlparser.vala4
1 files changed, 4 insertions, 0 deletions
diff --git a/vapigen/valagidlparser.vala b/vapigen/valagidlparser.vala
index b9f0214b1..4c5df9770 100644
--- a/vapigen/valagidlparser.vala
+++ b/vapigen/valagidlparser.vala
@@ -1841,6 +1841,10 @@ public class Vala.GIdlParser : CodeVisitor {
if (eval (nv[1]) == "0") {
prop.no_accessor_method = true;
}
+ } else if (nv[0] == "owned_get") {
+ if (eval (nv[1]) == "1") {
+ prop.get_accessor.value_type.value_owned = true;
+ }
}
}
}