diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-08-18 09:21:22 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-08-18 10:27:46 +0800 |
commit | dd57574c0427b4571c1daac42b6ffa636a8c80c1 (patch) | |
tree | cfd6429d8c551ac48405f304326320a99eef3dfa /mail/e-mail-session.c | |
parent | f20ec31e2069d4278cc7d5d4a96a334c9bbccb40 (diff) | |
download | gsoc2013-evolution-dd57574c0427b4571c1daac42b6ffa636a8c80c1.tar.gz gsoc2013-evolution-dd57574c0427b4571c1daac42b6ffa636a8c80c1.tar.zst gsoc2013-evolution-dd57574c0427b4571c1daac42b6ffa636a8c80c1.zip |
Use new CamelService:display-name property.
Simplify, simplify...
Diffstat (limited to 'mail/e-mail-session.c')
-rw-r--r-- | mail/e-mail-session.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/mail/e-mail-session.c b/mail/e-mail-session.c index 6c96eca4be..ffcbb57e58 100644 --- a/mail/e-mail-session.c +++ b/mail/e-mail-session.c @@ -819,10 +819,12 @@ mail_session_get_password (CamelSession *session, GError **error) { EAccount *account = NULL; + const gchar *display_name = NULL; const gchar *uid = NULL; gchar *ret = NULL; if (CAMEL_IS_SERVICE (service)) { + display_name = camel_service_get_display_name (service); uid = camel_service_get_uid (service); account = e_get_account_by_uid (uid); } @@ -856,18 +858,18 @@ mail_session_get_password (CamelSession *session, gchar *title; if (flags & CAMEL_SESSION_PASSPHRASE) { - if (account) + if (display_name != NULL) title = g_strdup_printf ( _("Enter Passphrase for %s"), - account->name); + display_name); else title = g_strdup ( _("Enter Passphrase")); } else { - if (account) + if (display_name != NULL) title = g_strdup_printf ( _("Enter Password for %s"), - account->name); + display_name); else title = g_strdup ( _("Enter Password")); |