[valadoc] doclets/gtkdoclet: Properly handle property accessors



commit f30795bac759c0618ca6f13c2ec8a8e5cda57b1a
Author: Luca Bruno <lethalman88 gmail com>
Date:   Tue May 4 21:51:09 2010 +0200

    doclets/gtkdoclet: Properly handle property accessors

 src/doclets/gtkdoc/generator.vala |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/doclets/gtkdoc/generator.vala b/src/doclets/gtkdoc/generator.vala
index 238b487..ab0f985 100644
--- a/src/doclets/gtkdoc/generator.vala
+++ b/src/doclets/gtkdoc/generator.vala
@@ -336,12 +336,12 @@ public class Gtkdoc.Generator : Api.Visitor {
 		add_comment (prop.get_filename(), "%s:%s".printf (current_cname, prop.get_cname ()), prop.documentation);
 		prop.accept_all_children (this);
 
-		if (prop.getter != null && !prop.getter.is_private) {
+		if (prop.getter != null && !prop.getter.is_private && prop.getter.is_get) {
 			add_symbol (prop.get_filename(), prop.getter.get_cname ());
 		}
 
-		if (prop.setter != null && !prop.setter.is_private) {
-		  add_symbol (prop.get_filename(), prop.setter.get_cname ());
+		if (prop.setter != null && !prop.setter.is_private && prop.setter.is_set) {
+			add_symbol (prop.get_filename(), prop.setter.get_cname ());
 		}
 	}
 



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