aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-tree-model.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-07 22:29:37 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-05-07 22:29:37 +0800
commit4660d0fcad7ca0e6ad74241d3133a37b82e4e9de (patch)
tree0fc47bc6fd25f8f9f220b3cfb32b7d19713fefd4 /mail/em-folder-tree-model.c
parent2b1b637832f0fb86e1cb1026b82ded43088c35df (diff)
downloadgsoc2013-evolution-4660d0fcad7ca0e6ad74241d3133a37b82e4e9de.tar.gz
gsoc2013-evolution-4660d0fcad7ca0e6ad74241d3133a37b82e4e9de.tar.zst
gsoc2013-evolution-4660d0fcad7ca0e6ad74241d3133a37b82e4e9de.zip
Adapt to CamelFolderInfo.name -> display_name.
Diffstat (limited to 'mail/em-folder-tree-model.c')
-rw-r--r--mail/em-folder-tree-model.c27
1 files changed, 14 insertions, 13 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,