After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 605452 - Added more info to "Documenting symbols" sectio
Added more info to "Documenting symbols" sectio
Status: RESOLVED FIXED
Product: gtk-doc
Classification: Platform
Component: general
1.13
Other All
: Normal enhancement
: 1.14
Assigned To: gtk-doc maintainers
gtk-doc maintainers
Depends on:
Blocks:
 
 
Reported: 2009-12-26 01:24 UTC by Javier Jardón (IRC: jjardon)
Modified: 2010-01-11 21:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Added more info to "Documenting symbols" sectio (7.81 KB, patch)
2009-12-26 01:27 UTC, Javier Jardón (IRC: jjardon)
needs-work Details | Review
Added more info to "Documenting symbols" section.v2 (8.30 KB, patch)
2010-01-03 21:55 UTC, Javier Jardón (IRC: jjardon)
committed Details | Review

Description Javier Jardón (IRC: jjardon) 2009-12-26 01:24:09 UTC
I've copied some info from http://live.gnome.org/DocumentationProject/GtkDoc to complete the official documentation
Comment 1 Javier Jardón (IRC: jjardon) 2009-12-26 01:27:09 UTC
Created attachment 150387 [details] [review]
Added more info to "Documenting symbols" sectio

I've also reworked the section and use <sect2></sect2> to separate each block
Comment 2 Stefan Sauer (gstreamer, gtkdoc dev) 2010-01-02 21:43:13 UTC
Review of attachment 150387 [details] [review]:

::: help/manual/C/gtk-doc-manual.xml
@@ +916,3 @@
+ * Deprecated: 2.12: Use foo_baz_get_bar() instead.
+ **/
+Bar *

This would be the correct example (returns is not a parameter)
/**
 * foo_get_bar:
 * @foo: some foo
 *
 * Retrieves @foo's bar.
 *
 * Returns: @foo's bar
 *
 * Since: 2.6
 *
 * Deprecated: 2.12: Use foo_baz_get_bar() instead.
 */

@@ +948,3 @@
+          </itemizedlist>
+        </para>
+

Hmm, for this we should ideally link/describe the gobject introspection annotation tags. Maybe you can add a FIXME and the link to the gnome live wiki.

@@ +965,1 @@
  *

* @...: a %NULL-terminated list of bars

"@Varargs:" also works, but imho is not nice to read.

@@ +987,3 @@
+          </varlistentry>
+          <varlistentry><term>@Varargs</term>
+            <listitem>

see above.
Comment 3 Javier Jardón (IRC: jjardon) 2010-01-03 21:55:11 UTC
Created attachment 150757 [details] [review]
Added more info to "Documenting symbols" section.v2
Comment 4 Stefan Sauer (gstreamer, gtkdoc dev) 2010-01-11 21:43:17 UTC
Comment on attachment 150757 [details] [review]
Added more info to "Documenting symbols" section.v2

Committed with small modifications:
- @varargs -> @... + mention @varargs
- fix xml validation