]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
importer: gir: Process callback comments
authorFlorian Brosch <flo.brosch@gmail.com>
Thu, 1 Nov 2012 00:46:20 +0000 (01:46 +0100)
committerFlorian Brosch <flo.brosch@gmail.com>
Thu, 1 Nov 2012 00:46:20 +0000 (01:46 +0100)
src/libvaladoc/importer/girdocumentationimporter.vala

index 6319475db7c68190c7f9602b05da30bff26a27d0..b2ee4788d7f7a9fa69831534b80359888c5238c7 100644 (file)
@@ -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;