]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
doclets/gtkdoc: Fix generation of gtk-doc links to error codes
authorPhilip Withnall <philip@tecnocode.co.uk>
Thu, 16 Aug 2012 19:02:59 +0000 (21:02 +0200)
committerFlorian Brosch <flo.brosch@gmail.com>
Thu, 16 Aug 2012 19:23:34 +0000 (21:23 +0200)
They were being handled by the catch-all case, which doesn’t
correctly add ‘CAPS’ to the link.

src/doclets/gtkdoc/utils.vala

index dd0fb45a5897d319d33a74a0ce14e8e559a2bb03..9bd2df5a924c13939022bf0c4d18e6d8572ce234 100644 (file)
@@ -98,6 +98,9 @@ namespace Gtkdoc {
                } else if (item is Api.Constant) {
                        var cname = ((Api.Constant)item).get_cname ();
                        return """<link linkend="%s:CAPS"><literal>%s</literal></link>""".printf (to_docbook_id (cname), cname);
+               } else if (item is Api.ErrorCode) {
+                       var cname = ((Api.ErrorCode)item).get_cname ();
+                       return """<link linkend="%s:CAPS"><literal>%s</literal></link>""".printf (to_docbook_id (cname), cname);
                } else if (item is Api.Property) {
                        string name;
                        string parent;