[vala] vapigen: Support owned_get metadata attribute for properties



commit 4ae14322ece626544204388cf84c11b5842bf3d4
Author: Jürg Billeter <j bitron ch>
Date:   Mon Sep 14 18:38:47 2009 +0200

    vapigen: Support owned_get metadata attribute for properties
    
    Fixes bug 592462.

 vapigen/valagidlparser.vala |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/vapigen/valagidlparser.vala b/vapigen/valagidlparser.vala
index b9f0214..4c5df97 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;
+					}
 				}
 			}
 		}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]