diff options
author | Tomeu Vizoso <tomeu.vizoso@collabora.com> | 2012-02-21 16:36:34 +0100 |
---|---|---|
committer | Tomeu Vizoso <tomeu.vizoso@collabora.com> | 2012-02-21 17:09:28 +0100 |
commit | e77b6a15c6a74740a2b75826c8bded0463f85c5f (patch) | |
tree | 359ed30066f95fc829f0b17f8a3e1f5bac83abe0 /tests | |
parent | c383f8569a58d91de9e64d78b777d1a3925c3780 (diff) | |
download | gobject-introspection-e77b6a15c6a74740a2b75826c8bded0463f85c5f.tar.gz |
g-ir-doc-tool: Add tests for signals
Diffstat (limited to 'tests')
3 files changed, 6 insertions, 12 deletions
diff --git a/tests/doctool/DocExamples-1.0-C-expected/DocExamples.Obj-signal-example.page b/tests/doctool/DocExamples-1.0-C-expected/DocExamples.Obj-signal-example.page index 646d294d..548588c8 100644 --- a/tests/doctool/DocExamples-1.0-C-expected/DocExamples.Obj-signal-example.page +++ b/tests/doctool/DocExamples-1.0-C-expected/DocExamples.Obj-signal-example.page @@ -9,7 +9,5 @@ <title type="link" role="topic">signal-example</title> </info> <title>DocExamplesObj::signal-example</title> -<p>Emitted when the connection status on the account changes.</p><p>The @dbus_error_name and @details parameters were present, but -non-functional (always %NULL), in older versions. They have been -available with their current behaviour since version 0.11.7.</p> +<p>This is an example of how to document a signal.</p> </page> diff --git a/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.Obj-signal-example.page b/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.Obj-signal-example.page index 76a89f36..9b096651 100644 --- a/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.Obj-signal-example.page +++ b/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.Obj-signal-example.page @@ -12,9 +12,7 @@ <synopsis><code mime="text/x-python"> def callback(obj, float_param, since, user_param1, ...) </code></synopsis> -<p>Emitted when the connection status on the account changes.</p><p>The @dbus_error_name and @details parameters were present, but -non-functional (always None), in older versions. They have been -available with their current behaviour since version 0.11.7.</p> +<p>This is an example of how to document a signal.</p> <table> <tr> diff --git a/tests/doctool/doc-examples-obj.c b/tests/doctool/doc-examples-obj.c index ff866289..30f4d1d2 100644 --- a/tests/doctool/doc-examples-obj.c +++ b/tests/doctool/doc-examples-obj.c @@ -53,15 +53,11 @@ doc_examples_obj_class_init (DocExamplesObjClass *klass) /** * DocExamplesObj::signal-example: - * @object: + * @obj: * @int_param: a parameter of type int * @float_param: a parameter of type float * - * Emitted when the connection status on the account changes. - * - * The @dbus_error_name and @details parameters were present, but - * non-functional (always %NULL), in older versions. They have been - * available with their current behaviour since version 0.11.7. + * This is an example of how to document a signal. * * Since: 0.99 */ @@ -79,6 +75,8 @@ doc_examples_obj_class_init (DocExamplesObjClass *klass) * * Type: GLib.HashTable(utf8,gint8) * Transfer: container + * + * Since: 0.99 */ pspec = g_param_spec_boxed ("property-example", "Example property", |