[vala] girparser: correctly detect error domains in newer GIRs
- From: Evan Nemerson <evann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] girparser: correctly detect error domains in newer GIRs
- Date: Mon, 12 Sep 2011 20:25:02 +0000 (UTC)
commit 08b06ff17f84d2c0e84fa0d21f2e914f6d5be067
Author: Evan Nemerson <evan coeus-group com>
Date: Thu Sep 8 01:39:11 2011 -0700
girparser: correctly detect error domains in newer GIRs
vala/valagirparser.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 773c9a1..3ef980d 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -1838,7 +1838,7 @@ public class Vala.GirParser : CodeVisitor {
parse_enumeration ();
}
} else {
- if (reader.get_attribute ("glib:error-quark") != null) {
+ if ((reader.get_attribute ("glib:error-quark") != null) || (reader.get_attribute ("glib:error-domain") != null)) {
parse_error_domain ();
} else {
parse_enumeration ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]