]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
girwriter: Add self parameter to the callback of virtual methods field
authorLuca Bruno <lucabru@src.gnome.org>
Mon, 23 May 2011 16:43:49 +0000 (18:43 +0200)
committerLuca Bruno <lucabru@src.gnome.org>
Mon, 23 May 2011 16:45:26 +0000 (18:45 +0200)
Fixes bug 650607.

codegen/valagirwriter.vala

index 8c5d352042cebf8b2ba48d3cecc9f9461f28904e..1d65c73962b77a23471ae6ffc745a5d3be7804a7 100644 (file)
@@ -260,7 +260,6 @@ public class Vala.GIRWriter : CodeVisitor {
 
                        hierarchy.insert (0, cl);
                        cl.accept_children (this);
-                       hierarchy.remove_at (0);
 
                        indent--;
                        write_indent ();
@@ -305,7 +304,7 @@ public class Vala.GIRWriter : CodeVisitor {
                                        buffer.append_printf ("</field>\n");
                                }
                        }
-
+                       hierarchy.remove_at (0);
 
                        indent--;
                        write_indent ();
@@ -403,7 +402,6 @@ public class Vala.GIRWriter : CodeVisitor {
 
                hierarchy.insert (0, iface);
                iface.accept_children (this);
-               hierarchy.remove_at (0);
 
                indent--;
                write_indent ();
@@ -436,6 +434,7 @@ public class Vala.GIRWriter : CodeVisitor {
                                buffer.append_printf ("</field>\n");
                        }
                }
+               hierarchy.remove_at (0);
 
                indent--;
                write_indent ();