diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-08-18 09:21:22 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-09-14 20:08:51 +0800 |
commit | 9b59286ea42a3db8b5d76f4e388b8691340b034c (patch) | |
tree | eb333208a2d7e3cb8deb2f461fb90bbddbb10eb6 /plugins/mail-notification | |
parent | 87e18345094a649f2d6940d1ebd12b79454d7a94 (diff) | |
download | gsoc2013-evolution-9b59286ea42a3db8b5d76f4e388b8691340b034c.tar gsoc2013-evolution-9b59286ea42a3db8b5d76f4e388b8691340b034c.tar.gz gsoc2013-evolution-9b59286ea42a3db8b5d76f4e388b8691340b034c.tar.bz2 gsoc2013-evolution-9b59286ea42a3db8b5d76f4e388b8691340b034c.tar.lz gsoc2013-evolution-9b59286ea42a3db8b5d76f4e388b8691340b034c.tar.xz gsoc2013-evolution-9b59286ea42a3db8b5d76f4e388b8691340b034c.tar.zst gsoc2013-evolution-9b59286ea42a3db8b5d76f4e388b8691340b034c.zip |
Use new CamelService:display-name property.
Simplify, simplify...
Diffstat (limited to 'plugins/mail-notification')
-rw-r--r-- | plugins/mail-notification/mail-notification.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/plugins/mail-notification/mail-notification.c b/plugins/mail-notification/mail-notification.c index fb2d973dcd..99224eb288 100644 --- a/plugins/mail-notification/mail-notification.c +++ b/plugins/mail-notification/mail-notification.c @@ -373,18 +373,15 @@ new_notify_status (EMEventTargetFolder *t) gchar *text; if (!status_count) { - EAccount *account; + CamelService *service; + const gchar *store_name; gchar *folder_name; - const gchar *uid; - uid = camel_service_get_uid (CAMEL_SERVICE (t->store)); - account = e_get_account_by_uid (uid); + service = CAMEL_SERVICE (t->store); + store_name = camel_service_get_display_name (service); - if (account != NULL) - folder_name = g_strdup_printf ( - "%s/%s", account->name, t->folder_name); - else - folder_name = g_strdup (t->folder_name); + folder_name = g_strdup_printf ( + "%s/%s", store_name, t->folder_name); status_count = t->new; |