]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vapigen: Allow metadata to specify the type_name of properties.
authorEvan Nemerson <evan@coeus-group.com>
Fri, 20 Aug 2010 06:12:03 +0000 (23:12 -0700)
committerJürg Billeter <j@bitron.ch>
Fri, 20 Aug 2010 08:17:08 +0000 (10:17 +0200)
vapigen/valagidlparser.vala

index 95a8f14c7bf746aa2f5b4e47f301d5ab2203a98f..62ba63c3a0448cd5a885f1ffefdb0af451e1c463 100644 (file)
@@ -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]));
                                }
                        }
                }