[valadoc] importer: gir: Process callback comments



commit 0a0f2de7b53e3a8f2c68dcacfb8a6602f5b4d10b
Author: Florian Brosch <flo brosch gmail com>
Date:   Thu Nov 1 01:46:20 2012 +0100

    importer: gir: Process callback comments

 .../importer/girdocumentationimporter.vala         |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/libvaladoc/importer/girdocumentationimporter.vala b/src/libvaladoc/importer/girdocumentationimporter.vala
index 6319475..b2ee478 100644
--- a/src/libvaladoc/importer/girdocumentationimporter.vala
+++ b/src/libvaladoc/importer/girdocumentationimporter.vala
@@ -572,7 +572,7 @@ public class Valadoc.Importer.GirDocumentationImporter : DocumentationImporter {
 	}
 
 	private void parse_callback () {
-		skip_element ();
+		parse_function ("callback");
 	}
 
 	private void parse_constructor () {
@@ -590,6 +590,10 @@ public class Valadoc.Importer.GirDocumentationImporter : DocumentationImporter {
 			c_identifier = reader.get_attribute ("c:identifier");
 			break;
 
+		case "callback":
+			c_identifier = reader.get_attribute ("c:type");
+			break;
+
 		case "virtual-method":
 			c_identifier = "%s->%s".printf (this.parent_c_identifier, reader.get_attribute ("name").replace ("-", "_"));
 			break;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]