From fb5f66296f9e19250e470ca1272ee319e68d0849 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Wed, 14 Nov 2012 11:04:04 +0100 Subject: [PATCH] Don't print messages when creating default collection * This is expected behavior, so don't complain. https://bugzilla.gnome.org/show_bug.cgi?id=688165 --- libsecret/secret-methods.c | 4 +--- libsecret/secret-paths.c | 7 +++++++ libsecret/secret-private.h | 3 +++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/libsecret/secret-methods.c b/libsecret/secret-methods.c index 9d1a5ab..fbb4448 100644 --- a/libsecret/secret-methods.c +++ b/libsecret/secret-methods.c @@ -1014,9 +1014,8 @@ on_store_create (GObject *source, SecretService *service = SECRET_SERVICE (source); GError *error = NULL; GHashTable *properties; - gchar *path; - path = secret_service_create_item_dbus_path_finish (service, result, &error); + _secret_service_create_item_dbus_path_finish_raw (result, &error); /* * This happens when the collection doesn't exist. If the collection is @@ -1040,7 +1039,6 @@ on_store_create (GObject *source, g_simple_async_result_complete (async); } - g_free (path); g_object_unref (async); } diff --git a/libsecret/secret-paths.c b/libsecret/secret-paths.c index dfe968e..deed0d4 100644 --- a/libsecret/secret-paths.c +++ b/libsecret/secret-paths.c @@ -2088,6 +2088,13 @@ secret_service_create_item_dbus_path_finish (SecretService *self, return path; } +void +_secret_service_create_item_dbus_path_finish_raw (GAsyncResult *result, + GError **error) +{ + g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (result), error); +} + /** * secret_service_create_item_dbus_path_sync: * @self: a secret service object diff --git a/libsecret/secret-private.h b/libsecret/secret-private.h index 1b669ea..e563887 100644 --- a/libsecret/secret-private.h +++ b/libsecret/secret-private.h @@ -171,6 +171,9 @@ gint _secret_service_xlock_paths_finish (SecretService *se gchar ***xlocked, GError **error); +void _secret_service_create_item_dbus_path_finish_raw (GAsyncResult *result, + GError **error); + GHashTable * _secret_collection_properties_new (const gchar *label); SecretItem * _secret_collection_find_item_instance (SecretCollection *self,