From: Luca Bruno Date: Tue, 4 May 2010 20:01:24 +0000 (+0200) Subject: doclets/gtkdoclet: Do not add an header only for annotations if the comment is empty X-Git-Tag: 0.37.1~3^2~472 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e69bfc236ec58aff78d572170462564bd0a08b90;p=thirdparty%2Fvala.git doclets/gtkdoclet: Do not add an header only for annotations if the comment is empty --- diff --git a/src/doclets/gtkdoc/generator.vala b/src/doclets/gtkdoc/generator.vala index 98446bbce..5efc7dbfa 100644 --- a/src/doclets/gtkdoc/generator.vala +++ b/src/doclets/gtkdoc/generator.vala @@ -190,7 +190,7 @@ public class Gtkdoc.Generator : Api.Visitor { } private void add_header (string name, Comment? comment, string[]? annotations = null) { - if (comment == null && annotations == null) { + if (comment == null) { return; } @@ -446,7 +446,7 @@ public class Gtkdoc.Generator : Api.Visitor { if (param.parameter_type.data_type is Api.Array) { annotations += "array length=%s".printf (param.name+"_length1"); } - + add_header (param.name, param.documentation, annotations); param.accept_all_children (this); }