From 6f5bf0eceda8f735a2f276d2e32ecf9477863929 Mon Sep 17 00:00:00 2001 From: Michal Hruby Date: Mon, 31 Jan 2011 18:20:33 +0100 Subject: [PATCH] girwriter: Fix output of interface structs --- codegen/valagirwriter.vala | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/codegen/valagirwriter.vala b/codegen/valagirwriter.vala index 60ab49e5..55fc523d 100644 --- a/codegen/valagirwriter.vala +++ b/codegen/valagirwriter.vala @@ -416,9 +416,24 @@ public class Vala.GIRWriter : CodeVisitor { buffer.append_printf (">\n"); indent++; + write_indent (); + buffer.append_printf ("\n"); + indent++; + write_indent (); + buffer.append_printf ("\n"); + indent--; + write_indent (); + buffer.append_printf ("\n"); + foreach (Method m in iface.get_methods ()) { if (m.is_abstract || m.is_virtual) { + write_indent (); + buffer.append_printf("\n", m.name); + indent++; write_signature(m, "callback", true); + indent--; + write_indent (); + buffer.append_printf ("\n"); } } -- 2.11.4.GIT