[vala/0.10: 5/38] vapigen: Allow metadata to specify the type_name of properties.



commit 24d3f6c87bc4568b2d4963bceb465a3e9fcbf143
Author: Evan Nemerson <evan coeus-group com>
Date:   Thu Aug 19 23:12:03 2010 -0700

    vapigen: Allow metadata to specify the type_name of properties.

 vapigen/valagidlparser.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/vapigen/valagidlparser.vala b/vapigen/valagidlparser.vala
index 95a8f14..62ba63c 100644
--- a/vapigen/valagidlparser.vala
+++ b/vapigen/valagidlparser.vala
@@ -2164,6 +2164,8 @@ public class Vala.GIdlParser : CodeVisitor {
 					if (eval (nv[1]) == "1") {
 						prop.get_accessor.value_type.value_owned = true;
 					}
+				} else if (nv[0] == "type_name") {
+					prop.property_type = get_type_from_string (eval (nv[1]));
 				}
 			}
 		}



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