]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gir: ignore type struct docs
authorFlorian Brosch <flo.brosch@gmail.com>
Tue, 26 Aug 2014 00:48:28 +0000 (02:48 +0200)
committerFlorian Brosch <flo.brosch@gmail.com>
Fri, 29 Aug 2014 13:52:54 +0000 (15:52 +0200)
src/libvaladoc/importer/girdocumentationimporter.vala

index 4186c27e7ea3d821f8cc8f6cbd51661936a3ccaa..9984dd59b472a9e2f546a54f0c9c2511e3d72316 100644 (file)
@@ -510,10 +510,13 @@ public class Valadoc.Importer.GirDocumentationImporter : DocumentationImporter {
                        return ;
                }
 
+               bool is_type_struct = (reader.get_attribute ("glib:is-gtype-struct-for") != null);
                next ();
 
                Api.GirSourceComment? comment = parse_symbol_doc ();
-               attach_comment (this.parent_c_identifier, comment);
+               if (is_type_struct == false) {
+                       attach_comment (this.parent_c_identifier, comment);
+               }
 
                while (current_token == MarkupTokenType.START_ELEMENT) {
                        if (reader.name == "field") {