]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
girparser: Always parse gtype structs as records even if they're disguised
authorLuca Bruno <lucabru@src.gnome.org>
Fri, 3 Jun 2011 09:16:49 +0000 (11:16 +0200)
committerLuca Bruno <lucabru@src.gnome.org>
Fri, 3 Jun 2011 09:16:49 +0000 (11:16 +0200)
vala/valagirparser.vala

index 383bbdd06f9592cd33af8cfb7349e72f30abbd03..f1123cfbf20a28e55859fd5b7d1fd75ba30b9238 100644 (file)
@@ -1674,7 +1674,7 @@ public class Vala.GirParser : CodeVisitor {
                                        parse_compact_class ("record", true);
                                } else {
                                        if (!reader.get_attribute ("name").has_suffix ("Private")) {
-                                               if (reader.get_attribute ("disguised") == "1") {
+                                               if (reader.get_attribute ("glib:is-gtype-struct-for") == null && reader.get_attribute ("disguised") == "1") {
                                                        parse_compact_class ("record", false);
                                                } else {
                                                        parse_record ();