aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/em-folder-tree-model.c27
-rw-r--r--mail/em-subscription-editor.c2
-rw-r--r--mail/mail-vfolder.c4
-rw-r--r--plugins/templates/templates.c8
4 files changed, 22 insertions, 19 deletions
diff --git a/mail/em-folder-tree-model.c b/mail/em-folder-tree-model.c
index 0f41d5f41d..72cd4ccf70 100644
--- a/mail/em-folder-tree-model.c
+++ b/mail/em-folder-tree-model.c
@@ -646,8 +646,8 @@ em_folder_tree_model_set_folder_info (EMFolderTreeModel *model,
gboolean is_templates = FALSE;
CamelFolder *folder;
gboolean emitted = FALSE;
- const gchar *name;
const gchar *icon_name;
+ const gchar *display_name;
guint32 flags, add_flags = 0;
EMEventTargetCustomIcon *target;
gchar *uri;
@@ -705,26 +705,27 @@ em_folder_tree_model_set_folder_info (EMFolderTreeModel *model,
}
flags = fi->flags;
- name = fi->name;
+ display_name = fi->display_name;
+
if (si->store == e_mail_local_get_store ()) {
- if (!strcmp(fi->full_name, "Drafts")) {
- name = _("Drafts");
+ if (strcmp (fi->full_name, "Drafts") == 0) {
is_drafts = TRUE;
- } else if (!strcmp(fi->full_name, "Templates")) {
- name = _("Templates");
+ display_name = _("Drafts");
+ } else if (strcmp (fi->full_name, "Templates") == 0) {
is_templates = TRUE;
- } else if (!strcmp(fi->full_name, "Inbox")) {
+ display_name = _("Templates");
+ } else if (strcmp (fi->full_name, "Inbox") == 0) {
flags = (flags & ~CAMEL_FOLDER_TYPE_MASK) |
CAMEL_FOLDER_TYPE_INBOX;
- name = _("Inbox");
- } else if (!strcmp(fi->full_name, "Outbox")) {
+ display_name = _("Inbox");
+ } else if (strcmp (fi->full_name, "Outbox") == 0) {
flags = (flags & ~CAMEL_FOLDER_TYPE_MASK) |
CAMEL_FOLDER_TYPE_OUTBOX;
- name = _("Outbox");
- } else if (!strcmp(fi->full_name, "Sent")) {
- name = _("Sent");
+ display_name = _("Outbox");
+ } else if (strcmp (fi->full_name, "Sent") == 0) {
flags = (flags & ~CAMEL_FOLDER_TYPE_MASK) |
CAMEL_FOLDER_TYPE_SENT;
+ display_name = _("Sent");
}
}
@@ -756,7 +757,7 @@ em_folder_tree_model_set_folder_info (EMFolderTreeModel *model,
gtk_tree_store_set (
tree_store, iter,
- COL_STRING_DISPLAY_NAME, name,
+ COL_STRING_DISPLAY_NAME, display_name,
COL_POINTER_CAMEL_STORE, si->store,
COL_STRING_FULL_NAME, fi->full_name,
COL_STRING_ICON_NAME, icon_name,
diff --git a/mail/em-subscription-editor.c b/mail/em-subscription-editor.c
index 368abcbe50..d2027dc01b 100644
--- a/mail/em-subscription-editor.c
+++ b/mail/em-subscription-editor.c
@@ -178,7 +178,7 @@ subscription_editor_populate (EMSubscriptionEditor *editor,
tree_store, &iter,
COL_CASEFOLDED, NULL, /* not needed */
COL_FOLDER_ICON, icon_name,
- COL_FOLDER_NAME, folder_info->name,
+ COL_FOLDER_NAME, folder_info->display_name,
COL_FOLDER_INFO, folder_info, -1);
if (FOLDER_SUBSCRIBED (folder_info)) {
diff --git a/mail/mail-vfolder.c b/mail/mail-vfolder.c
index 082c8427ca..b867bf485b 100644
--- a/mail/mail-vfolder.c
+++ b/mail/mail-vfolder.c
@@ -945,7 +945,9 @@ store_folder_deleted_cb (CamelStore *store,
e_rule_context_save ((ERuleContext *)context, user);
g_free (user);
} else {
- g_warning("Cannot find rule for deleted vfolder '%s'", info->name);
+ g_warning (
+ "Cannot find rule for deleted vfolder '%s'",
+ info->display_name);
}
G_UNLOCK (vfolder);
diff --git a/plugins/templates/templates.c b/plugins/templates/templates.c
index 9fded58413..aa43d4921b 100644
--- a/plugins/templates/templates.c
+++ b/plugins/templates/templates.c
@@ -862,12 +862,12 @@ build_template_menus_recurse (GtkUIManager *ui_manager,
GPtrArray *uids;
GtkAction *action;
const gchar *action_label;
- const gchar *folder_name;
+ const gchar *display_name;
gchar *action_name;
gchar *path;
guint ii;
- folder_name = folder_info->name;
+ display_name = folder_info->display_name;
/* FIXME Not passing a GCancellable or GError here. */
folder = camel_store_get_folder_sync (
store, folder_info->full_name, 0, NULL, NULL);
@@ -877,10 +877,10 @@ build_template_menus_recurse (GtkUIManager *ui_manager,
*action_count = *action_count + 1;
/* To avoid having a Templates dir, we ignore the top level */
- if (g_str_has_suffix (folder_name, "Templates"))
+ if (g_str_has_suffix (display_name, "Templates"))
action_label = _("Templates");
else
- action_label = folder_name;
+ action_label = display_name;
action = gtk_action_new (
action_name, action_label, NULL, NULL);