]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
girparser: allow changing record names in metadata
authorEvan Nemerson <evan@coeus-group.com>
Fri, 23 Sep 2011 18:52:52 +0000 (11:52 -0700)
committerEvan Nemerson <evan@coeus-group.com>
Fri, 23 Sep 2011 20:07:11 +0000 (13:07 -0700)
vala/valagirparser.vala

index bd25d9bec3c617a28aa3440e9be485cdd9264ca5..a3d650ebc0b5535b83323d722b15591653bc0803 100644 (file)
@@ -2304,7 +2304,7 @@ public class Vala.GirParser : CodeVisitor {
 
                Struct st;
                if (current.new_symbol) {
-                       st = new Struct (reader.get_attribute ("name"), current.source_reference);
+                       st = new Struct (element_get_name (), current.source_reference);
                        current.symbol = st;
                } else {
                        st = (Struct) current.symbol;