[vala] GIR writer: Embed <callback> inside <field> for virtual methods
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] GIR writer: Embed <callback> inside <field> for virtual methods
- Date: Sun, 17 Jan 2010 12:49:37 +0000 (UTC)
commit 8ce3708986ba02e1a7e9aee9ff5c08f160e6cabe
Author: Abderrahim Kitouni <a kitouni gmail com>
Date: Thu Dec 3 18:51:46 2009 +0100
GIR writer: Embed <callback> inside <field> for virtual methods
See gobject-introspection commit f8693bda.
codegen/valagirwriter.vala | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/codegen/valagirwriter.vala b/codegen/valagirwriter.vala
index e83ae8b..f07b4f1 100644
--- a/codegen/valagirwriter.vala
+++ b/codegen/valagirwriter.vala
@@ -208,7 +208,13 @@ public class Vala.GIRWriter : CodeVisitor {
foreach (Method m in cl.get_methods ()) {
if (m.is_abstract || m.is_virtual) {
+ write_indent ();
+ stream.printf("<field name=\"%s\">\n", m.name);
+ indent++;
write_signature(m, "callback", true);
+ indent--;
+ write_indent ();
+ stream.printf ("</field>\n");
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]