From: Evan Nemerson Date: Fri, 20 Aug 2010 06:12:03 +0000 (-0700) Subject: vapigen: Allow metadata to specify the type_name of properties. X-Git-Tag: 0.9.8~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24d3f6c87bc4568b2d4963bceb465a3e9fcbf143;p=thirdparty%2Fvala.git vapigen: Allow metadata to specify the type_name of properties. --- diff --git a/vapigen/valagidlparser.vala b/vapigen/valagidlparser.vala index 95a8f14c7..62ba63c3a 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])); } } }