[vala] girparser: Allow specifying abstract metadata for classes
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] girparser: Allow specifying abstract metadata for classes
- Date: Thu, 22 Dec 2011 20:19:54 +0000 (UTC)
commit 85ac81f4ff2e66c1e8e1072a0e18d303573cc334
Author: Luca Bruno <lucabru src gnome org>
Date: Thu Dec 22 21:12:30 2011 +0100
girparser: Allow specifying abstract metadata for classes
vala/valagirparser.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 6152841..eecb9d4 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]