[valadoc] doclets/gtkdoc: Fix generation of gtk-doc links to error codes
- From: Florian Brosch <flobrosch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [valadoc] doclets/gtkdoc: Fix generation of gtk-doc links to error codes
- Date: Fri, 17 Aug 2012 23:25:29 +0000 (UTC)
commit 947b2f174db3d39b4dab191bdf10946321bc02eb
Author: Philip Withnall <philip tecnocode co uk>
Date: Thu Aug 16 21:02:59 2012 +0200
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.
src/doclets/gtkdoc/utils.vala | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/doclets/gtkdoc/utils.vala b/src/doclets/gtkdoc/utils.vala
index dd0fb45..9bd2df5 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 """<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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]