]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
girparser: correctly detect error domains in newer GIRs
authorEvan Nemerson <evan@coeus-group.com>
Thu, 8 Sep 2011 08:39:11 +0000 (01:39 -0700)
committerEvan Nemerson <evan@coeus-group.com>
Sun, 11 Sep 2011 04:54:22 +0000 (21:54 -0700)
vala/valagirparser.vala

index 773c9a19ba48420d37326d07a6d60529f98258d3..3ef980deefac1cbeb08984356aa3cb1ad7d9db01 100644 (file)
@@ -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 ();