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
This commit is contained in:
Stef Walter 2012-11-14 11:04:04 +01:00
parent a23ee598c7
commit fb5f66296f
3 changed files with 11 additions and 3 deletions

View File

@ -1014,9 +1014,8 @@ on_store_create (GObject *source,
SecretService *service = SECRET_SERVICE (source); SecretService *service = SECRET_SERVICE (source);
GError *error = NULL; GError *error = NULL;
GHashTable *properties; 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);
} }

View 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: * secret_service_create_item_dbus_path_sync:
* @self: a secret service object * @self: a secret service object

View File

@ -171,6 +171,9 @@ gint _secret_service_xlock_paths_finish (SecretService *se
gchar ***xlocked, gchar ***xlocked,
GError **error); GError **error);
void _secret_service_create_item_dbus_path_finish_raw (GAsyncResult *result,
GError **error);
GHashTable * _secret_collection_properties_new (const gchar *label); GHashTable * _secret_collection_properties_new (const gchar *label);
SecretItem * _secret_collection_find_item_instance (SecretCollection *self, SecretItem * _secret_collection_find_item_instance (SecretCollection *self,