From 52d455f673c5afbd5b0489425c311471358f1f43 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Wed, 27 Jun 2012 16:33:22 +0200 Subject: [PATCH] Notify the 'items' and 'collections' properties when udpated * When SecretCollection updates its 'items' property or SecretService 'collections' property notify that these have been changed. --- library/secret-collection.c | 1 + library/secret-service.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/library/secret-collection.c b/library/secret-collection.c index 251ac0b..d5b439b 100644 --- a/library/secret-collection.c +++ b/library/secret-collection.c @@ -241,6 +241,7 @@ collection_update_items (SecretCollection *self, g_mutex_unlock (&self->pv->mutex); g_hash_table_unref (previous); + g_object_notify (G_OBJECT (self), "items"); } typedef struct { diff --git a/library/secret-service.c b/library/secret-service.c index 9afaad3..9e870e2 100644 --- a/library/secret-service.c +++ b/library/secret-service.c @@ -1316,6 +1316,8 @@ service_update_collections (SecretService *self, if (previous != NULL) g_hash_table_unref (previous); + + g_object_notify (G_OBJECT (self), "collections"); } typedef struct { -- 2.7.4