[gtk-doc] scan: Fix GStrv boxed types in signal handlers
- From: Stefan Kost <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] scan: Fix GStrv boxed types in signal handlers
- Date: Thu, 8 Jul 2010 11:52:47 +0000 (UTC)
commit 32aef97855bad03b8ca47e6dc396bd7d8dbad9e3
Author: Christian Persch <chpe gnome org>
Date: Wed Jul 7 21:54:12 2010 +0200
scan: Fix GStrv boxed types in signal handlers
Output "GStrv" as the argument type, not "GStrv*".
Fixes: #623777.
gtkdoc-scangobj.in | 4 +++-
tests/gobject/src/gobject.c | 30 ++++++++++++++++++++++++++++++
2 files changed, 33 insertions(+), 1 deletions(-)
---
diff --git a/gtkdoc-scangobj.in b/gtkdoc-scangobj.in
index 4f92a1d..1977ed2 100644
--- a/gtkdoc-scangobj.in
+++ b/gtkdoc-scangobj.in
@@ -525,7 +525,9 @@ default:
*is_pointer = TRUE;
/* All boxed subtypes will be pointers as well. */
- if (g_type_is_a (type, G_TYPE_BOXED))
+ /* Exception: GStrv */
+ if (g_type_is_a (type, G_TYPE_BOXED) &&
+ !g_type_is_a (type, G_TYPE_STRV))
*is_pointer = TRUE;
/* All pointer subtypes will be pointers as well. */
diff --git a/tests/gobject/src/gobject.c b/tests/gobject/src/gobject.c
index 98d0f7a..be33439 100644
--- a/tests/gobject/src/gobject.c
+++ b/tests/gobject/src/gobject.c
@@ -183,6 +183,36 @@ static void gtkdoc_object_class_init (GtkdocObjectClass *klass) {
0); // n_params
/**
+ * GtkdocObject::strings-changed:
+ *
+ * Something has happened.
+ */
+ g_signal_new ("strings-changed", G_TYPE_FROM_CLASS (klass),
+ G_SIGNAL_RUN_LAST | G_SIGNAL_NO_RECURSE | G_SIGNAL_NO_HOOKS,
+ 0,
+ NULL, // accumulator
+ NULL, // acc data
+ g_cclosure_marshal_VOID__BOXED,
+ G_TYPE_NONE, // return type
+ 1, G_TYPE_STRV); // n_params
+
+#if GLIB_CHECK_VERSION (2, 25, 9)
+ /**
+ * GtkdocObject::variant-changed:
+ *
+ * Something has happened.
+ */
+ g_signal_new ("variant-changed", G_TYPE_FROM_CLASS (klass),
+ G_SIGNAL_RUN_LAST | G_SIGNAL_NO_RECURSE | G_SIGNAL_NO_HOOKS,
+ 0,
+ NULL, // accumulator
+ NULL, // acc data
+ g_cclosure_marshal_VOID__VARIANT,
+ G_TYPE_NONE, // return type
+ 1, G_TYPE_VARIANT); // n_params
+#endif
+
+ /**
* GtkdocObject:otest:
*
* Since: 0.1
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]