[gobject-introspection] g-ir-doc-tool: Add tests for signals



commit e77b6a15c6a74740a2b75826c8bded0463f85c5f
Author: Tomeu Vizoso <tomeu vizoso collabora com>
Date:   Tue Feb 21 16:36:34 2012 +0100

    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 646d294..548588c 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 76a89f3..9b09665 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 ff86628..30f4d1d 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",



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]