[gtk-doc] tests: add an example of a vmthod link with '_' in the name



commit 31942f424e4fba139ceac510bb1565d9413013bc
Author: Stefan Kost <ensonic users sf net>
Date:   Sat Aug 20 19:34:43 2011 +0200

    tests: add an example of a vmthod link with '_' in the name

 tests/gobject/src/gobject.c |    3 ++-
 tests/gobject/src/gobject.h |    2 ++
 2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/tests/gobject/src/gobject.c b/tests/gobject/src/gobject.c
index ae36fdb..fefe557 100644
--- a/tests/gobject/src/gobject.c
+++ b/tests/gobject/src/gobject.c
@@ -10,7 +10,8 @@
  * signal.
  *
  * When subclassing it is useful to override the #GtkdocObjectClass.test()
- * method.
+ * method. The #GtkdocObjectClass.foo_bar() vmethod lets you refine your
+ * frobnicator.
  *
  * A new instance can be created using the gtkdoc_object_new() function. The
  * whole lifecycle usualy looks like shown in this example:
diff --git a/tests/gobject/src/gobject.h b/tests/gobject/src/gobject.h
index 0b3a89d..24c1ce0 100644
--- a/tests/gobject/src/gobject.h
+++ b/tests/gobject/src/gobject.h
@@ -49,6 +49,7 @@ struct _GtkdocObject {
  * @parent: this is a bug :/
  * @test: overideable method
  * @ping: can be used before calling the @test() function
+ * @foo_bar: lets you refine your frobnicator
  *
  * class data of gtk-doc unit test class
  */
@@ -58,6 +59,7 @@ struct _GtkdocObjectClass {
   /* class methods */
   void (*test)(const GtkdocObject * const self, gconstpointer const user_data);
   gboolean (*ping)(const GtkdocObject * const self);
+  gboolean (*foo_bar)(const GtkdocObject * const self);
 };
 
 /**



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