diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-07-04 21:55:30 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-07-04 22:20:54 +0800 |
commit | 99d492b8284fa467f2b8ad3e6b637e10258d1cc2 (patch) | |
tree | eeabd62681bd3cbf0e903c509dbafeec75f804d1 /mail/e-mail-session.c | |
parent | 56e3e6818693118b1a33c682ff71ec7d561c46d1 (diff) | |
download | gsoc2013-evolution-99d492b8284fa467f2b8ad3e6b637e10258d1cc2.tar gsoc2013-evolution-99d492b8284fa467f2b8ad3e6b637e10258d1cc2.tar.gz gsoc2013-evolution-99d492b8284fa467f2b8ad3e6b637e10258d1cc2.tar.bz2 gsoc2013-evolution-99d492b8284fa467f2b8ad3e6b637e10258d1cc2.tar.lz gsoc2013-evolution-99d492b8284fa467f2b8ad3e6b637e10258d1cc2.tar.xz gsoc2013-evolution-99d492b8284fa467f2b8ad3e6b637e10258d1cc2.tar.zst gsoc2013-evolution-99d492b8284fa467f2b8ad3e6b637e10258d1cc2.zip |
Adapt to CamelSession and e-passwords changes.
Diffstat (limited to 'mail/e-mail-session.c')
-rw-r--r-- | mail/e-mail-session.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/mail/e-mail-session.c b/mail/e-mail-session.c index 1a3b9e8c0a..44bbd8d0aa 100644 --- a/mail/e-mail-session.c +++ b/mail/e-mail-session.c @@ -609,7 +609,6 @@ mail_session_finalize (GObject *object) static gchar * mail_session_get_password (CamelSession *session, CamelService *service, - const gchar *domain, const gchar *prompt, const gchar *item, guint32 flags, @@ -631,10 +630,7 @@ mail_session_get_password (CamelSession *session, gchar *key = mail_session_make_key (service, item); EAccountService *config_service = NULL; - if (domain == NULL) - domain = "Mail"; - - ret = e_passwords_get_password (domain, key); + ret = e_passwords_get_password (NULL, key); if (ret == NULL || (flags & CAMEL_SESSION_PASSWORD_REPROMPT)) { gboolean remember; @@ -696,11 +692,11 @@ mail_session_get_password (CamelSession *session, eflags |= E_PASSWORDS_DISABLE_REMEMBER; ret = e_passwords_ask_password ( - title, domain, key, prompt, + title, NULL, key, prompt, eflags, &remember, NULL); if (!ret) - e_passwords_forget_password (domain, key); + e_passwords_forget_password (NULL, key); g_free (title); @@ -729,16 +725,14 @@ mail_session_get_password (CamelSession *session, static gboolean mail_session_forget_password (CamelSession *session, CamelService *service, - const gchar *domain, const gchar *item, GError **error) { gchar *key; - domain = (domain != NULL) ? domain : "Mail"; key = mail_session_make_key (service, item); - e_passwords_forget_password (domain, key); + e_passwords_forget_password (NULL, key); g_free (key); |