aboutsummaryrefslogtreecommitdiffstats
path: root/libemail-engine
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-07-09 04:05:49 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-07-09 20:44:22 +0800
commit07857224789b165e69bb170d364c9c13366fa952 (patch)
treed7710f540387171e070d7f7ee331fc43426dc048 /libemail-engine
parent5bd9b582903a1bd949ade4b0a46e8a8b9b116561 (diff)
downloadgsoc2013-evolution-07857224789b165e69bb170d364c9c13366fa952.tar
gsoc2013-evolution-07857224789b165e69bb170d364c9c13366fa952.tar.gz
gsoc2013-evolution-07857224789b165e69bb170d364c9c13366fa952.tar.bz2
gsoc2013-evolution-07857224789b165e69bb170d364c9c13366fa952.tar.lz
gsoc2013-evolution-07857224789b165e69bb170d364c9c13366fa952.tar.xz
gsoc2013-evolution-07857224789b165e69bb170d364c9c13366fa952.tar.zst
gsoc2013-evolution-07857224789b165e69bb170d364c9c13366fa952.zip
Use folder display name in status messages when possible.
Diffstat (limited to 'libemail-engine')
-rw-r--r--libemail-engine/e-mail-folder-utils.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/libemail-engine/e-mail-folder-utils.c b/libemail-engine/e-mail-folder-utils.c
index aa1541c15c..5e05b64844 100644
--- a/libemail-engine/e-mail-folder-utils.c
+++ b/libemail-engine/e-mail-folder-utils.c
@@ -107,7 +107,7 @@ e_mail_folder_append_message_sync (CamelFolder *folder,
camel_operation_push_message (
cancellable,
_("Saving message to folder '%s'"),
- camel_folder_get_full_name (folder));
+ camel_folder_get_display_name (folder));
if (camel_medium_get_header (medium, "X-Mailer") == NULL)
camel_medium_set_header (medium, "X-Mailer", X_MAILER);
@@ -831,7 +831,9 @@ e_mail_folder_remove_sync (CamelFolder *folder,
CamelFolderInfo *to_remove;
CamelFolderInfo *next = NULL;
CamelStore *parent_store;
+ const gchar *display_name;
const gchar *full_name;
+ const gchar *message;
gboolean success = TRUE;
GCancellable *transparent_cancellable = NULL;
gulong cbid = 0;
@@ -879,9 +881,9 @@ e_mail_folder_remove_sync (CamelFolder *folder,
to_remove->next = NULL;
}
- camel_operation_push_message (
- cancellable, _("Removing folder '%s'"),
- camel_folder_get_full_name (folder));
+ message = _("Removing folder '%s'");
+ display_name = camel_folder_get_display_name (folder);
+ camel_operation_push_message (cancellable, message, display_name);
if (cancellable) {
transparent_cancellable = g_cancellable_new ();