diff options
author | Sankar P <psankar@novell.com> | 2005-09-20 20:38:54 +0800 |
---|---|---|
committer | Sankarasivasubramanian Pasupathilingam <psankar@src.gnome.org> | 2005-09-20 20:38:54 +0800 |
commit | 4545f5d072cd76f59eeb7011b348d61ac8e14f6a (patch) | |
tree | 99787aec3542390b51a46af808900bfd222b227e /mail | |
parent | d07dc7533727996caa49dfa3e5b19528beeda0ee (diff) | |
download | gsoc2013-evolution-4545f5d072cd76f59eeb7011b348d61ac8e14f6a.tar.gz gsoc2013-evolution-4545f5d072cd76f59eeb7011b348d61ac8e14f6a.tar.zst gsoc2013-evolution-4545f5d072cd76f59eeb7011b348d61ac8e14f6a.zip |
Added enum and the code to change the icon for sent items folder. Fixes
2005-09-15 Sankar P <psankar@novell.com>
* em-folder-tree-model.c (em_folder_tree_model_set_folder_info):
* em-folder-tree.c (render_pixbuf): Added enum and the code to
change the icon for sent items folder. Fixes #257321
svn path=/trunk/; revision=30365
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 6 | ||||
-rw-r--r-- | mail/em-folder-tree-model.c | 1 | ||||
-rw-r--r-- | mail/em-folder-tree.c | 5 |
3 files changed, 12 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 4f4408c072..f4204c96fa 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +2005-09-15 Sankar P <psankar@novell.com> + + * em-folder-tree-model.c (em_folder_tree_model_set_folder_info): + * em-folder-tree.c (render_pixbuf): Added enum and the code to + change the icon for sent items folder. Fixes #257321 + 2005-09-02 Harish Krishnaswamy <kharish@novell.com> * default/C/Inbox: Update the Welcome mail. diff --git a/mail/em-folder-tree-model.c b/mail/em-folder-tree-model.c index 478481b144..44b318b44c 100644 --- a/mail/em-folder-tree-model.c +++ b/mail/em-folder-tree-model.c @@ -475,6 +475,7 @@ em_folder_tree_model_set_folder_info (EMFolderTreeModel *model, GtkTreeIter *ite name = _("Outbox"); } else if (!strcmp(fi->full_name, "Sent")) { name = _("Sent"); + flags = (flags & ~CAMEL_FOLDER_TYPE_MASK) | CAMEL_FOLDER_TYPE_SENT; } } diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c index c3da19e64f..29142c596a 100644 --- a/mail/em-folder-tree.c +++ b/mail/em-folder-tree.c @@ -268,6 +268,7 @@ enum { FOLDER_ICON_JUNK, FOLDER_ICON_SHARED_TO_ME, FOLDER_ICON_SHARED_BY_ME, + FOLDER_ICON_SENT, FOLDER_ICON_LAST }; @@ -290,6 +291,7 @@ render_pixbuf (GtkTreeViewColumn *column, GtkCellRenderer *renderer, folder_icons[FOLDER_ICON_JUNK] = e_icon_factory_get_icon ("stock_spam", E_ICON_SIZE_MENU); folder_icons[FOLDER_ICON_SHARED_TO_ME] = e_icon_factory_get_icon ("stock_shared-to-me", E_ICON_SIZE_MENU); folder_icons[FOLDER_ICON_SHARED_BY_ME] = e_icon_factory_get_icon ("stock_shared-by-me", E_ICON_SIZE_MENU); + folder_icons[FOLDER_ICON_SENT] = e_icon_factory_get_icon ("stock_sent-mail", E_ICON_SIZE_MENU); initialised = TRUE; } @@ -310,6 +312,9 @@ render_pixbuf (GtkTreeViewColumn *column, GtkCellRenderer *renderer, case CAMEL_FOLDER_TYPE_JUNK: pixbuf = folder_icons[FOLDER_ICON_JUNK]; break; + case CAMEL_FOLDER_TYPE_SENT: + pixbuf = folder_icons[FOLDER_ICON_SENT]; + break; default: if (flags & CAMEL_FOLDER_SHARED_TO_ME) pixbuf = folder_icons[FOLDER_ICON_SHARED_TO_ME]; |