[valadoc] Html: Reuse get_html_css_class where possible
- From: Florian Brosch <flobrosch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [valadoc] Html: Reuse get_html_css_class where possible
- Date: Wed, 21 Oct 2009 10:46:40 +0000 (UTC)
commit 29fdd58caad0a16c191c15f4999dfd3ce93e7b0f
Author: Didier "Ptitjes <ptitjes free fr>
Date: Tue Oct 20 03:08:46 2009 +0200
Html: Reuse get_html_css_class where possible
src/doclets/htmlhelpers/doclet/doclet.vala | 19 +------------------
1 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/src/doclets/htmlhelpers/doclet/doclet.vala b/src/doclets/htmlhelpers/doclet/doclet.vala
index 31a1c85..097aa9d 100755
--- a/src/doclets/htmlhelpers/doclet/doclet.vala
+++ b/src/doclets/htmlhelpers/doclet/doclet.vala
@@ -95,24 +95,7 @@ public abstract class Valadoc.Html.BasicDoclet : Api.Visitor, Doclet {
protected void write_navi_top_entry (Api.Node element, Api.Node? parent) {
string name = (element.name == null)? "Global Namespace" : element.name;
- string style = null;
-
- if (element is Namespace)
- style = css_namespace;
- else if (element is Enum)
- style = css_enum;
- else if (element is ErrorDomain)
- style = css_errordomain;
- else if (element is Struct)
- style = css_struct;
- else if (element is Class)
- style = (((Class)element).is_abstract)? css_abstract_class : css_class;
- else if (element is Interface)
- style = css_interface;
- else if (element is Package) {
- name = element.package.name;
- style = css_package;
- }
+ string style = get_html_css_class (element);
writer.start_tag ("ul", css_navi);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]