]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
girparser: Allow specifying abstract metadata for classes
authorLuca Bruno <lucabru@src.gnome.org>
Thu, 22 Dec 2011 20:12:30 +0000 (21:12 +0100)
committerJürg Billeter <j@bitron.ch>
Tue, 31 Jan 2012 12:06:04 +0000 (13:06 +0100)
vala/valagirparser.vala

index 615284151e62c8902c311d5178eda7cf4de684be..eecb9d47c7ec4675555696cf8b023b339229cebd 100644 (file)
@@ -2398,7 +2398,7 @@ public class Vala.GirParser : CodeVisitor {
                if (current.new_symbol) {
                        cl = new Class (current.name, current.source_reference);
                        cl.set_attribute_string ("CCode", "type_id", "%s ()".printf (reader.get_attribute ("glib:get-type")));
-                       cl.is_abstract = reader.get_attribute ("abstract") == "1";
+                       cl.is_abstract = metadata.get_bool (ArgumentType.ABSTRACT, reader.get_attribute ("abstract") == "1");
 
                        if (parent != null) {
                                cl.add_base_type (parse_type_from_gir_name (parent));