]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
girwriter: fix name of *Class structs for nested types in GIRs
authorEvan Nemerson <evan@coeus-group.com>
Mon, 11 Feb 2013 20:35:21 +0000 (12:35 -0800)
committerEvan Nemerson <evan@coeus-group.com>
Mon, 11 Feb 2013 20:35:21 +0000 (12:35 -0800)
Fixes bug 689500.

codegen/valagirwriter.vala

index 3f743d35bf1ad8f43f8dfb89e9bebc040978ea22..612fafe0552459fc3b6c0565bf8caa135b28e313 100644 (file)
@@ -300,7 +300,7 @@ public class Vala.GIRWriter : CodeVisitor {
                }
 
                if (cl.is_subtype_of (gobject_type)) {
-                       string gtype_struct_name = cl.name + "Class";
+                       string gtype_struct_name = get_gir_name (cl) + "Class";
 
                        write_indent ();
                        buffer.append_printf ("<class name=\"%s\"", get_gir_name (cl));