diff options
author | Jürg Billeter <j@bitron.ch> | 2009-09-14 18:38:47 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2009-09-14 18:38:47 +0200 |
commit | 4ae14322ece626544204388cf84c11b5842bf3d4 (patch) | |
tree | 770dece3874b227d2ff8ec59c88bd42e04408a7b /vapigen | |
parent | 1bd3c326105c75a9bca21dfeb850ab1707a5f152 (diff) | |
download | vala-4ae14322ece626544204388cf84c11b5842bf3d4.tar.gz |
vapigen: Support owned_get metadata attribute for properties
Fixes bug 592462.
Diffstat (limited to 'vapigen')
-rw-r--r-- | vapigen/valagidlparser.vala | 4 |
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; + } } } } |