From e77b6a15c6a74740a2b75826c8bded0463f85c5f Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Tue, 21 Feb 2012 16:36:34 +0100 Subject: g-ir-doc-tool: Add tests for signals --- .../DocExamples.Obj-signal-example.page | 4 +--- .../DocExamples.Obj-signal-example.page | 4 +--- tests/doctool/doc-examples-obj.c | 10 ++++------ 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 @@ signal-example DocExamplesObj::signal-example -

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.

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 @@ def callback(obj, float_param, since, user_param1, ...) -

Emitted when the connection status on the account changes.

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.

+

This is an example of how to document a signal.

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", -- cgit v1.2.1