[libsecret] Update the collection 'Items' property correctly



commit 463c649ca8e227af518042a7dc4c8ed5740c0476
Author: Stef Walter <stefw gnome org>
Date:   Wed Jun 27 16:39:37 2012 +0200

    Update the collection 'Items' property correctly
    
     * Problems due to not setting constructing flag when construction
       of SecretCollection completed

 library/secret-collection.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/library/secret-collection.c b/library/secret-collection.c
index da5cade..3cea1a6 100644
--- a/library/secret-collection.c
+++ b/library/secret-collection.c
@@ -623,6 +623,7 @@ secret_collection_initable_init (GInitable *initable,
 	if (!collection_load_items_sync (self, cancellable, error))
 		return FALSE;
 
+	self->pv->constructing = FALSE;
 	return TRUE;
 }
 
@@ -721,12 +722,15 @@ secret_collection_async_initable_init_finish (GAsyncInitable *initable,
                                               GAsyncResult *result,
                                               GError **error)
 {
+	SecretCollection *self = SECRET_COLLECTION (initable);
+
 	g_return_val_if_fail (g_simple_async_result_is_valid (result, G_OBJECT (initable),
 	                      secret_collection_async_initable_init_async), FALSE);
 
 	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (result), error))
 		return FALSE;
 
+	self->pv->constructing = FALSE;
 	return TRUE;
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]