[vala] GIR writer: Write virtual signal handlers
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] GIR writer: Write virtual signal handlers
- Date: Sun, 17 Jan 2010 12:49:47 +0000 (UTC)
commit cb344b3564768ab5503ce044de18d5a75e813c29
Author: Abderrahim Kitouni <a kitouni gmail com>
Date: Thu Dec 3 20:02:39 2009 +0100
GIR writer: Write virtual signal handlers
codegen/valagirwriter.vala | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/codegen/valagirwriter.vala b/codegen/valagirwriter.vala
index 4b03145..9946093 100644
--- a/codegen/valagirwriter.vala
+++ b/codegen/valagirwriter.vala
@@ -218,6 +218,19 @@ public class Vala.GIRWriter : CodeVisitor {
}
}
+ foreach (Signal sig in cl.get_signals ()) {
+ if (sig.default_handler != null) {
+ write_indent ();
+ stream.printf ("<field name=\"%s\">\n", sig.name);
+ indent++;
+ write_signature (sig.default_handler, "callback", true);
+ indent--;
+ write_indent ();
+ stream.printf ("</field>\n");
+ }
+ }
+
+
indent--;
write_indent ();
stream.printf ("</record>\n");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]