]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vapigen: Support owned_get metadata attribute for properties
authorJürg Billeter <j@bitron.ch>
Mon, 14 Sep 2009 16:38:47 +0000 (18:38 +0200)
committerJürg Billeter <j@bitron.ch>
Mon, 14 Sep 2009 16:38:47 +0000 (18:38 +0200)
Fixes bug 592462.

vapigen/valagidlparser.vala

index b9f0214b1c03afd1032f4970a2d2156d92070f11..4c5df97709f07df2563f50bb5e0a8dbfa63d66bc 100644 (file)
@@ -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;
+                                       }
                                }
                        }
                }