aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-08-18 09:21:22 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-08-18 10:27:46 +0800
commitdd57574c0427b4571c1daac42b6ffa636a8c80c1 (patch)
treecfd6429d8c551ac48405f304326320a99eef3dfa /plugins
parentf20ec31e2069d4278cc7d5d4a96a334c9bbccb40 (diff)
downloadgsoc2013-evolution-dd57574c0427b4571c1daac42b6ffa636a8c80c1.tar
gsoc2013-evolution-dd57574c0427b4571c1daac42b6ffa636a8c80c1.tar.gz
gsoc2013-evolution-dd57574c0427b4571c1daac42b6ffa636a8c80c1.tar.bz2
gsoc2013-evolution-dd57574c0427b4571c1daac42b6ffa636a8c80c1.tar.lz
gsoc2013-evolution-dd57574c0427b4571c1daac42b6ffa636a8c80c1.tar.xz
gsoc2013-evolution-dd57574c0427b4571c1daac42b6ffa636a8c80c1.tar.zst
gsoc2013-evolution-dd57574c0427b4571c1daac42b6ffa636a8c80c1.zip
Use new CamelService:display-name property.
Simplify, simplify...
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mail-notification/mail-notification.c15
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;