Notify the 'items' and 'collections' properties when udpated

* When SecretCollection updates its 'items' property or
   SecretService 'collections' property notify that these
   have been changed.
This commit is contained in:
Stef Walter 2012-06-27 16:33:22 +02:00
parent fda131178a
commit 52d455f673
2 changed files with 3 additions and 0 deletions

View File

@ -241,6 +241,7 @@ collection_update_items (SecretCollection *self,
g_mutex_unlock (&self->pv->mutex); g_mutex_unlock (&self->pv->mutex);
g_hash_table_unref (previous); g_hash_table_unref (previous);
g_object_notify (G_OBJECT (self), "items");
} }
typedef struct { typedef struct {

View File

@ -1316,6 +1316,8 @@ service_update_collections (SecretService *self,
if (previous != NULL) if (previous != NULL)
g_hash_table_unref (previous); g_hash_table_unref (previous);
g_object_notify (G_OBJECT (self), "collections");
} }
typedef struct { typedef struct {