summaryrefslogtreecommitdiff
path: root/tests/doctool/DocExamples-1.0-Python-expected
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu.vizoso@collabora.com>2012-02-21 18:04:13 +0100
committerTomeu Vizoso <tomeu.vizoso@collabora.com>2012-02-21 18:04:13 +0100
commitf9eb570c8b3dc34c2844e47c57b67146af48bedc (patch)
treeed98defb68f5789a642da40e038df963fc9d3df4 /tests/doctool/DocExamples-1.0-Python-expected
parent0212b33e933999b4d03858cce503c602c5a05908 (diff)
downloadgobject-introspection-f9eb570c8b3dc34c2844e47c57b67146af48bedc.tar.gz
g-ir-doc-tool: Add support for virtual functions
Diffstat (limited to 'tests/doctool/DocExamples-1.0-Python-expected')
-rw-r--r--tests/doctool/DocExamples-1.0-Python-expected/DocExamples.Obj-vfunc.page27
-rw-r--r--tests/doctool/DocExamples-1.0-Python-expected/DocExamples.Obj.page3
2 files changed, 30 insertions, 0 deletions
diff --git a/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.Obj-vfunc.page b/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.Obj-vfunc.page
new file mode 100644
index 00000000..4e394d2d
--- /dev/null
+++ b/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.Obj-vfunc.page
@@ -0,0 +1,27 @@
+<?xml version="1.0"?>
+<page id="DocExamples.Obj-vfunc"
+ type="topic"
+ style="vfunc"
+ xmlns="http://projectmallard.org/1.0/"
+ xmlns:api="http://projectmallard.org/experimental/api/"
+ xmlns:ui="http://projectmallard.org/experimental/ui/">
+ <info>
+ <link type="guide" xref="DocExamples.Obj" group="vfunc"/>
+ <title type="link" role="topic">vfunc</title>
+ </info>
+ <title>DocExamples.Obj.vfunc</title>
+<synopsis><code mime="text/x-python">
+@accepts(gint)
+@returns(none)
+def do_vfunc(self, first_arg):
+</code></synopsis>
+<p>This is an example of how to document a vfunc.</p>
+
+<table>
+<tr>
+<td><p>first_arg :</p></td>
+<td><p>first argument</p></td>
+</tr>
+</table>
+<p>Since 0.99</p>
+</page>
diff --git a/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.Obj.page b/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.Obj.page
index cab691e7..071abf1a 100644
--- a/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.Obj.page
+++ b/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.Obj.page
@@ -44,6 +44,9 @@ obj = DocExamples.Obj(<link xref='DocExamples.Obj-property-example'>property_exa
<links type="topic" ui:expanded="yes" groups="signal" style="linklist">
<title>Signals</title>
</links>
+ <links type="topic" ui:expanded="yes" groups="vfunc" style="linklist">
+ <title>Virtual functions</title>
+ </links>
<links type="topic" ui:expanded="yes" groups="#first #default #last" style="linklist">
<title>Other</title>
</links>