[vala] vapigen: Allow metadata to specify the type_name of properties.
- From: Evan Nemerson <evann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] vapigen: Allow metadata to specify the type_name of properties.
- Date: Fri, 20 Aug 2010 06:19:18 +0000 (UTC)
commit 63ca609c2e52e81edb8866758cd43af114c0b9e1
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]