aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2010-12-07 00:24:38 +0800
committerJonny Lamb <jonny.lamb@collabora.co.uk>2010-12-07 00:24:38 +0800
commita5a3b01dcda00b938e6ce61d3b6dbf6b0d57abe0 (patch)
tree7068c58191227046e73a39a70771f241439c0483 /libempathy
parent4014b19321977ffd5700aa8d1df258393bb74521 (diff)
downloadgsoc2013-empathy-a5a3b01dcda00b938e6ce61d3b6dbf6b0d57abe0.tar
gsoc2013-empathy-a5a3b01dcda00b938e6ce61d3b6dbf6b0d57abe0.tar.gz
gsoc2013-empathy-a5a3b01dcda00b938e6ce61d3b6dbf6b0d57abe0.tar.bz2
gsoc2013-empathy-a5a3b01dcda00b938e6ce61d3b6dbf6b0d57abe0.tar.lz
gsoc2013-empathy-a5a3b01dcda00b938e6ce61d3b6dbf6b0d57abe0.tar.xz
gsoc2013-empathy-a5a3b01dcda00b938e6ce61d3b6dbf6b0d57abe0.tar.zst
gsoc2013-empathy-a5a3b01dcda00b938e6ce61d3b6dbf6b0d57abe0.zip
keyring: change schema to be incompatible with current MC
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-keyring.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/libempathy/empathy-keyring.c b/libempathy/empathy-keyring.c
index f3d523e54..2ce53d361 100644
--- a/libempathy/empathy-keyring.c
+++ b/libempathy/empathy-keyring.c
@@ -29,8 +29,8 @@
static GnomeKeyringPasswordSchema keyring_schema =
{ GNOME_KEYRING_ITEM_GENERIC_SECRET,
- { { "account", GNOME_KEYRING_ATTRIBUTE_TYPE_STRING },
- { "param", GNOME_KEYRING_ATTRIBUTE_TYPE_STRING },
+ { { "account-id", GNOME_KEYRING_ATTRIBUTE_TYPE_STRING },
+ { "param-name", GNOME_KEYRING_ATTRIBUTE_TYPE_STRING },
{ NULL } } };
static void
@@ -83,9 +83,9 @@ empathy_keyring_get_password_async (TpAccount *account,
DEBUG ("Trying to get password for: %s", account_id);
match = gnome_keyring_attribute_list_new ();
- gnome_keyring_attribute_list_append_string (match, "account",
+ gnome_keyring_attribute_list_append_string (match, "account-id",
account_id);
- gnome_keyring_attribute_list_append_string (match, "param", "password");
+ gnome_keyring_attribute_list_append_string (match, "param-name", "password");
gnome_keyring_find_items (GNOME_KEYRING_ITEM_GENERIC_SECRET,
match, find_items_cb, simple, NULL);
@@ -154,12 +154,12 @@ empathy_keyring_set_password_async (TpAccount *account,
DEBUG ("Remembering password for %s", account_id);
- name = g_strdup_printf ("account: %s; param: param-password", account_id);
+ name = g_strdup_printf ("account: %s; param: password", account_id);
gnome_keyring_store_password (&keyring_schema, NULL, name, password,
store_password_cb, simple, NULL,
- "account", account_id,
- "param", "password",
+ "account-id", account_id,
+ "param-name", "password",
NULL);
g_free (name);
@@ -250,9 +250,9 @@ empathy_keyring_delete_password_async (TpAccount *account,
strlen (TP_ACCOUNT_OBJECT_PATH_BASE);
match = gnome_keyring_attribute_list_new ();
- gnome_keyring_attribute_list_append_string (match, "account",
+ gnome_keyring_attribute_list_append_string (match, "account-id",
account_id);
- gnome_keyring_attribute_list_append_string (match, "param", "password");
+ gnome_keyring_attribute_list_append_string (match, "param-name", "password");
gnome_keyring_find_items (GNOME_KEYRING_ITEM_GENERIC_SECRET,
match, find_item_to_delete_cb, simple, NULL);