summaryrefslogtreecommitdiff
path: root/tests/scanner/annotation.c
diff options
context:
space:
mode:
authorJohan Dahlin <johan@src.gnome.org>2009-01-13 13:14:26 +0000
committerJohan Dahlin <johan@src.gnome.org>2009-01-13 13:14:26 +0000
commitf41a65c1940138747bede765d50a97f41fc04f63 (patch)
treeea43a88e84e68a652ac036ae86698a07ac6680ae /tests/scanner/annotation.c
parentfad01e2f6b60658cb70dcd9d1b7d7387e9926034 (diff)
downloadgobject-introspection-f41a65c1940138747bede765d50a97f41fc04f63.tar.gz
Add a list-signal test for using a GLib.List signal parameter
svn path=/trunk/; revision=1030
Diffstat (limited to 'tests/scanner/annotation.c')
-rw-r--r--tests/scanner/annotation.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/scanner/annotation.c b/tests/scanner/annotation.c
index 3c771dd6..337b9733 100644
--- a/tests/scanner/annotation.c
+++ b/tests/scanner/annotation.c
@@ -11,6 +11,7 @@ enum {
enum {
STRING_SIGNAL,
+ LIST_SIGNAL,
LAST_SIGNAL
};
@@ -78,6 +79,22 @@ annotation_object_class_init (AnnotationObjectClass *klass)
(GSignalCMarshaller)g_cclosure_marshal_VOID__POINTER,
G_TYPE_NONE, 1, G_TYPE_POINTER);
+ /**
+ * AnnotationObject::list-signal:
+ * @annotation: the annotation object
+ * @list: (type GLib.List): (element-type utf8): (transfer container): a list of strings
+ *
+ * This is a signal which takes a list of strings, but it's not
+ * known by GObject as it's only marked as G_TYPE_POINTER
+ */
+ annotation_object_signals[LIST_SIGNAL] =
+ g_signal_new ("list-signal",
+ G_OBJECT_CLASS_TYPE (gobject_class),
+ G_SIGNAL_RUN_LAST,
+ 0,
+ NULL, NULL,
+ (GSignalCMarshaller)g_cclosure_marshal_VOID__POINTER,
+ G_TYPE_NONE, 1, G_TYPE_POINTER);
/**
* AnnotationObject:string-property: