summaryrefslogtreecommitdiff
path: root/gcr/gcr-collection.c
diff options
context:
space:
mode:
authorStef Walter <stefw@collabora.co.uk>2011-09-29 15:03:39 +0200
committerStef Walter <stefw@collabora.co.uk>2011-09-29 15:03:39 +0200
commit8177dd8f2797c897ca037a1288350e42e10dc38c (patch)
tree016858878179ffc8d004de3856750417ba6749f4 /gcr/gcr-collection.c
parente8cbdae82efcf8508d900547396b74c74080ae45 (diff)
downloadgcr-8177dd8f2797c897ca037a1288350e42e10dc38c.tar.gz
gcr: More introspection and documentation cleanup
* Tag proper transfer on return values * Use guchar * for arrays of bytes
Diffstat (limited to 'gcr/gcr-collection.c')
-rw-r--r--gcr/gcr-collection.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcr/gcr-collection.c b/gcr/gcr-collection.c
index 3b7bca4..08bbedb 100644
--- a/gcr/gcr-collection.c
+++ b/gcr/gcr-collection.c
@@ -62,11 +62,25 @@ gcr_collection_default_init (GcrCollectionIface *iface)
if (g_once_init_enter (&initialized)) {
+ /**
+ * GcrCollection::added:
+ * @self: the collection
+ * @object: (type GLib.Object): object that was added
+ *
+ * This signal is emitted when an object is added to the collection.
+ */
signals[ADDED] = g_signal_new ("added", GCR_TYPE_COLLECTION,
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GcrCollectionIface, added),
NULL, NULL, g_cclosure_marshal_VOID__OBJECT,
G_TYPE_NONE, 1, G_TYPE_OBJECT);
+ /**
+ * GcrCollection::removed:
+ * @self: the collection
+ * @object: (type GLib.Object): object that was removed
+ *
+ * This signal is emitted when an object is removed from the collection.
+ */
signals[REMOVED] = g_signal_new ("removed", GCR_TYPE_COLLECTION,
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GcrCollectionIface, removed),
NULL, NULL, g_cclosure_marshal_VOID__OBJECT,