[libsecret] Notify the 'items' and 'collections' properties when udpated
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsecret] Notify the 'items' and 'collections' properties when udpated
- Date: Wed, 27 Jun 2012 14:44:12 +0000 (UTC)
commit 52d455f673c5afbd5b0489425c311471358f1f43
Author: Stef Walter <stefw gnome org>
Date: Wed Jun 27 16:33:22 2012 +0200
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(+), 0 deletions(-)
---
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 {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]