Don't print messages when creating default collection
authorStef Walter <stefw@gnome.org>
Wed, 14 Nov 2012 10:04:04 +0000 (11:04 +0100)
committerStef Walter <stefw@gnome.org>
Wed, 14 Nov 2012 10:11:23 +0000 (11:11 +0100)
 * This is expected behavior, so don't complain.

https://bugzilla.gnome.org/show_bug.cgi?id=688165

libsecret/secret-methods.c
libsecret/secret-paths.c
libsecret/secret-private.h

index 9d1a5ab..fbb4448 100644 (file)
@@ -1014,9 +1014,8 @@ on_store_create (GObject *source,
        SecretService *service = SECRET_SERVICE (source);
        GError *error = NULL;
        GHashTable *properties;
        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
 
        /*
         * 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_simple_async_result_complete (async);
        }
 
-       g_free (path);
        g_object_unref (async);
 }
 
        g_object_unref (async);
 }
 
index dfe968e..deed0d4 100644 (file)
@@ -2088,6 +2088,13 @@ secret_service_create_item_dbus_path_finish (SecretService *self,
        return path;
 }
 
        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
 /**
  * secret_service_create_item_dbus_path_sync:
  * @self: a secret service object
index 1b669ea..e563887 100644 (file)
@@ -171,6 +171,9 @@ gint                 _secret_service_xlock_paths_finish       (SecretService *se
                                                                gchar ***xlocked,
                                                                GError **error);
 
                                                                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,
 GHashTable *         _secret_collection_properties_new        (const gchar *label);
 
 SecretItem *         _secret_collection_find_item_instance    (SecretCollection *self,