[valadoc] doclets/gtkdoclet: Add support for referencing properties



commit 95bf7c26e5b3562d46c5791cb8afb25b4bff7b6d
Author: Luca Bruno <lethalman88 gmail com>
Date:   Tue May 4 22:04:08 2010 +0200

    doclets/gtkdoclet: Add support for referencing properties

 src/doclets/gtkdoc/utils.vala |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/doclets/gtkdoc/utils.vala b/src/doclets/gtkdoc/utils.vala
index 55b19d2..f50b2a9 100644
--- a/src/doclets/gtkdoc/utils.vala
+++ b/src/doclets/gtkdoc/utils.vala
@@ -42,6 +42,8 @@ namespace Gtkdoc {
 			return ((Api.FormalParameter)item).name;
 		} else if (item is Api.Constant) {
 			return ((Api.Constant)item).get_cname ();
+		} else if (item is Api.Property) {
+			return ((Api.Property)item).get_cname ();
 		} else if (item is Api.Signal) {
 			var name = ((Api.Signal)item).get_cname ();
 			return name.replace ("_", "-");
@@ -70,6 +72,8 @@ namespace Gtkdoc {
 			return "@%s".printf (((Api.FormalParameter)item).name);
 		} else if (item is Api.Constant) {
 			return "%%%s".printf (((Api.Constant)item).get_cname ());
+		} else if (item is Api.Property) {
+			return "#%s:%s".printf (get_cname (item.parent), ((Api.Property)item).get_cname ());
 		} else if (item is Api.Signal) {
 			var name = ((Api.Signal)item).get_cname ();
 			name = name.replace ("_", "-");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]