[seahorse] More updates for libsecret changes
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [seahorse] More updates for libsecret changes
- Date: Fri, 6 Jul 2012 09:50:48 +0000 (UTC)
commit 645bf146b673e61fbe44a6a5450744aa79f238ce
Author: Stef Walter <stefw gnome org>
Date: Fri Jul 6 10:44:08 2012 +0200
More updates for libsecret changes
gkr/seahorse-gkr-actions.c | 12 ++++++------
gkr/seahorse-gkr-backend.c | 14 +++++++-------
2 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/gkr/seahorse-gkr-actions.c b/gkr/seahorse-gkr-actions.c
index e8de87d..c181065 100644
--- a/gkr/seahorse-gkr-actions.c
+++ b/gkr/seahorse-gkr-actions.c
@@ -188,9 +188,9 @@ on_keyring_default (GtkAction *action,
if (parent != NULL)
g_object_ref (parent);
- secret_service_set_alias_path (secret_collection_get_service (keyring), "default",
- g_dbus_proxy_get_object_path (G_DBUS_PROXY (keyring)),
- NULL, on_set_default_keyring_done, parent);
+ secret_service_set_alias (secret_collection_get_service (keyring), "default",
+ SECRET_COLLECTION (keyring),
+ NULL, on_set_default_keyring_done, parent);
}
typedef struct {
@@ -217,7 +217,7 @@ on_change_password_done (GObject *source,
GError *error = NULL;
GVariant *retval;
- retval = secret_service_prompt_path_finish (SECRET_SERVICE (source), result, NULL, &error);
+ retval = secret_service_prompt_at_dbus_path_finish (SECRET_SERVICE (source), result, NULL, &error);
if (retval != NULL)
g_variant_unref (retval);
if (error != NULL)
@@ -241,8 +241,8 @@ on_change_password_prompt (GObject *source,
retval = g_dbus_connection_call_finish (G_DBUS_CONNECTION (source), result, &error);
if (error == NULL) {
g_variant_get (retval, "@s", &prompt_path);
- secret_service_prompt_path (change->service, prompt_path, NULL,
- on_change_password_done, change);
+ secret_service_prompt_at_dbus_path (change->service, prompt_path, NULL,
+ on_change_password_done, change);
g_variant_unref (retval);
} else {
seahorse_util_handle_error (&error, change->parent, _("Couldn't change keyring password"));
diff --git a/gkr/seahorse-gkr-backend.c b/gkr/seahorse-gkr-backend.c
index a45d8ec..2b208de 100644
--- a/gkr/seahorse-gkr-backend.c
+++ b/gkr/seahorse-gkr-backend.c
@@ -388,7 +388,7 @@ on_load_read_alias (GObject *source,
GError *error = NULL;
gchar *path;
- path = secret_service_read_alias_path_finish (SECRET_SERVICE (source), result, &error);
+ path = secret_service_read_alias_dbus_path_finish (SECRET_SERVICE (source), result, &error);
if (path != NULL) {
g_hash_table_replace (self->aliases, g_strdup (alias), path);
g_object_notify (G_OBJECT (self), "aliases");
@@ -454,16 +454,16 @@ seahorse_gkr_backend_load_async (SeahorseGkrBackend *self,
return;
}
- secret_service_read_alias_path (self->service, "default", cancellable,
- on_load_read_default_alias, g_object_ref (async));
+ secret_service_read_alias_dbus_path (self->service, "default", cancellable,
+ on_load_read_default_alias, g_object_ref (async));
load->outstanding++;
- secret_service_read_alias_path (self->service, "session", cancellable,
- on_load_read_session_alias, g_object_ref (async));
+ secret_service_read_alias_dbus_path (self->service, "session", cancellable,
+ on_load_read_session_alias, g_object_ref (async));
load->outstanding++;
- secret_service_read_alias_path (self->service, "login", cancellable,
- on_load_read_login_alias, g_object_ref (async));
+ secret_service_read_alias_dbus_path (self->service, "login", cancellable,
+ on_load_read_login_alias, g_object_ref (async));
load->outstanding++;
g_object_unref (async);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]