[vala] girparser: Always parse gtype structs as records even if they're disguised



commit eea2bf2ef1d566fe0c8f20ab960aac8aca8e1201
Author: Luca Bruno <lucabru src gnome org>
Date:   Fri Jun 3 11:16:49 2011 +0200

    girparser: Always parse gtype structs as records even if they're disguised

 vala/valagirparser.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 383bbdd..f1123cf 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -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 ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]