[gtk-doc] Test "Deprecated: X.Y" without additional message



commit 24d5ca37d7db2d9ba4d6f4f4b3e461a7bfb3cd1c
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Tue Sep 24 16:31:13 2013 +0200

    Test "Deprecated: X.Y" without additional message
    
    https://bugzilla.gnome.org/show_bug.cgi?id=707717

 tests/gobject/docs-tmpl/tester-sections.txt |    1 +
 tests/gobject/docs/tester-sections.txt      |    1 +
 tests/gobject/src/gobject.c                 |   12 ++++++++++++
 tests/gobject/src/gobject.h                 |    1 +
 4 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/tests/gobject/docs-tmpl/tester-sections.txt b/tests/gobject/docs-tmpl/tester-sections.txt
index 06ef0dc..49191fd 100644
--- a/tests/gobject/docs-tmpl/tester-sections.txt
+++ b/tests/gobject/docs-tmpl/tester-sections.txt
@@ -6,6 +6,7 @@ gtkdoc_object_new
 gtkdoc_object_set_otest
 gtkdoc_object_frobnicate
 gtkdoc_object_fooify
+gtkdoc_object_do_not_use
 GTKDOC_OBJECT_MACRO_DUMMY
 GTKDOC_OBJECT_MACRO_SUM
 <SUBSECTION Standard>
diff --git a/tests/gobject/docs/tester-sections.txt b/tests/gobject/docs/tester-sections.txt
index 06ef0dc..49191fd 100644
--- a/tests/gobject/docs/tester-sections.txt
+++ b/tests/gobject/docs/tester-sections.txt
@@ -6,6 +6,7 @@ gtkdoc_object_new
 gtkdoc_object_set_otest
 gtkdoc_object_frobnicate
 gtkdoc_object_fooify
+gtkdoc_object_do_not_use
 GTKDOC_OBJECT_MACRO_DUMMY
 GTKDOC_OBJECT_MACRO_SUM
 <SUBSECTION Standard>
diff --git a/tests/gobject/src/gobject.c b/tests/gobject/src/gobject.c
index 2304791..353a9ee 100644
--- a/tests/gobject/src/gobject.c
+++ b/tests/gobject/src/gobject.c
@@ -230,6 +230,18 @@ gboolean gtkdoc_object_fooify (GObject *self, ...) {
   return TRUE;
 }
 
+/**
+ * gtkdoc_object_do_not_use:
+ * @self: the object
+ *
+ * Test a deprecation without additional message.
+ *
+ * Deprecated: 3.10
+ */
+void gtkdoc_object_do_not_use (GObject *self) {
+
+}
+
 /* class internals */
 
 static void gtkdoc_object_get_property (GObject  *object, guint property_id,
diff --git a/tests/gobject/src/gobject.h b/tests/gobject/src/gobject.h
index 24c1ce0..79e6cf8 100644
--- a/tests/gobject/src/gobject.h
+++ b/tests/gobject/src/gobject.h
@@ -97,6 +97,7 @@ GType  gtkdoc_object2_get_type(void) G_GNUC_CONST;
 GtkdocObject *gtkdoc_object_new(void);
 #ifndef GTKDOC_TESTER_DISABLE_DEPRECATED
 void gtkdoc_object_set_otest (GObject *self, const gchar *value);
+void gtkdoc_object_do_not_use (GObject *self);
 #endif
 void gtkdoc_object_frobnicate (GObject *self, gint n);
 gboolean gtkdoc_object_fooify (GObject *self, ...);


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