[valadoc] libvaladoc/api: fix Method::is_static



commit 6eda74d653c75dd1c9ffea32f135d15a52f5d3da
Author: Florian Brosch <flo brosch gmail com>
Date:   Wed Sep 1 17:57:46 2010 +0200

    libvaladoc/api: fix Method::is_static

 src/libvaladoc/api/method.vala       |    2 +-
 src/libvaladoc/html/basicdoclet.vala |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/libvaladoc/api/method.vala b/src/libvaladoc/api/method.vala
index 9b114a4..cca6686 100644
--- a/src/libvaladoc/api/method.vala
+++ b/src/libvaladoc/api/method.vala
@@ -75,7 +75,7 @@ public class Valadoc.Api.Method : Member {
 
 	public bool is_static {
 		get {
-			if (this.parent is Namespace || is_constructor) {
+			if (is_constructor) {
 				return false;
 			}
 			return ((Vala.Method) symbol).binding == MemberBinding.STATIC;
diff --git a/src/libvaladoc/html/basicdoclet.vala b/src/libvaladoc/html/basicdoclet.vala
index a887035..0601f66 100755
--- a/src/libvaladoc/html/basicdoclet.vala
+++ b/src/libvaladoc/html/basicdoclet.vala
@@ -695,7 +695,7 @@ public abstract class Valadoc.Html.BasicDoclet : Api.Visitor, Doclet {
 		write_children (node, Api.NodeType.ERROR_DOMAIN, "Error domains", parent);
 		write_children (node, Api.NodeType.CONSTANT, "Constants", parent);
 		write_children (node, Api.NodeType.DELEGATE, "Delegates", parent);
-		write_children (node, Api.NodeType.METHOD, "Methods", parent);
+		write_children (node, Api.NodeType.STATIC_METHOD, "Functions", parent);
 		write_children (node, Api.NodeType.FIELD, "Fields", parent);
 		writer.end_tag ("div");
 	}
@@ -724,7 +724,7 @@ public abstract class Valadoc.Html.BasicDoclet : Api.Visitor, Doclet {
 				write_children (child, Api.NodeType.ERROR_DOMAIN, "Error domains", parent);
 				write_children (child, Api.NodeType.CONSTANT, "Constants", parent);
 				write_children (child, Api.NodeType.DELEGATE, "Delegates", parent);
-				write_children (child, Api.NodeType.METHOD, "Methods", parent);
+				write_children (child, Api.NodeType.STATIC_METHOD, "Functions", parent);
 				write_children (child, Api.NodeType.FIELD, "Fields", parent);
 			}
 		}



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