=?utf-8?q?=5Bvaladoc=5D_doclets/gtkdoc=3A_Hide_=E2=80=98=5Fconstruct?= =?utf-8?q?=E2=80=99_functions_from_gtk-doc_documentation?=
- From: Florian Brosch <flobrosch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [valadoc] doclets/gtkdoc: Hide â_constructâ functions from gtk-doc documentation
- Date: Fri, 17 Aug 2012 23:25:24 +0000 (UTC)
commit f5a732d412613bba99011338206ace0f7a617bfd
Author: Philip Withnall <philip tecnocode co uk>
Date: Thu Aug 16 20:50:12 2012 +0200
doclets/gtkdoc: Hide â_constructâ functions from gtk-doc documentation
The main âmy_class_constructâ C function is hidden already,
but secondary â_constructâ functions for named constructors
are not. This fixes that, adding the â_constructâ functions
to gtk-docâs âprivateâ symbol section.
src/doclets/gtkdoc/generator.vala | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/doclets/gtkdoc/generator.vala b/src/doclets/gtkdoc/generator.vala
index af29391..de73195 100644
--- a/src/doclets/gtkdoc/generator.vala
+++ b/src/doclets/gtkdoc/generator.vala
@@ -808,6 +808,12 @@ It is important that your <link linkend=\"GValue\"><type>GValue</type></link> ho
see_also += get_docbook_link (m);
finish_gcomment.see_also = see_also;
}
+
+ if (m.is_constructor && !m.get_cname ().has_suffix ("_new")) {
+ // Hide secondary _construct methods from the documentation (the primary _construct method is hidden in visit_class())
+ var file_data = get_file_data (m.get_filename ());
+ file_data.private_section_lines.add (m.get_cname ().replace ("_new", "_construct"));
+ }
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]