From: Philip Withnall Date: Thu, 16 Aug 2012 19:02:59 +0000 (+0200) Subject: doclets/gtkdoc: Fix generation of gtk-doc links to error codes X-Git-Tag: 0.37.1~3^2~146 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=947b2f174db3d39b4dab191bdf10946321bc02eb;p=thirdparty%2Fvala.git doclets/gtkdoc: Fix generation of gtk-doc links to error codes They were being handled by the catch-all case, which doesn’t correctly add ‘CAPS’ to the link. --- diff --git a/src/doclets/gtkdoc/utils.vala b/src/doclets/gtkdoc/utils.vala index dd0fb45a5..9bd2df5a9 100644 --- a/src/doclets/gtkdoc/utils.vala +++ b/src/doclets/gtkdoc/utils.vala @@ -98,6 +98,9 @@ namespace Gtkdoc { } else if (item is Api.Constant) { var cname = ((Api.Constant)item).get_cname (); return """%s""".printf (to_docbook_id (cname), cname); + } else if (item is Api.ErrorCode) { + var cname = ((Api.ErrorCode)item).get_cname (); + return """%s""".printf (to_docbook_id (cname), cname); } else if (item is Api.Property) { string name; string parent;