aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-tree.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-10-16 17:32:46 +0800
committerMilan Crha <mcrha@redhat.com>2009-10-16 17:32:46 +0800
commit93040de356b53196e097099f46d9a6ea6718e7e6 (patch)
tree8e9e45667a00bcbb81dfc613d7f6b806c4bf2131 /mail/em-folder-tree.c
parentff885467062cecc9c80ca5441217777ccc5a757e (diff)
downloadgsoc2013-evolution-93040de356b53196e097099f46d9a6ea6718e7e6.tar.gz
gsoc2013-evolution-93040de356b53196e097099f46d9a6ea6718e7e6.tar.zst
gsoc2013-evolution-93040de356b53196e097099f46d9a6ea6718e7e6.zip
Bug #339628 - Non-default Draft folders are Draft folders too
Diffstat (limited to 'mail/em-folder-tree.c')
-rw-r--r--mail/em-folder-tree.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c
index 0217a7aa58..187522fb0a 100644
--- a/mail/em-folder-tree.c
+++ b/mail/em-folder-tree.c
@@ -971,13 +971,15 @@ render_icon (GtkTreeViewColumn *column,
guint unread;
guint old_unread;
gchar *icon_name;
- gboolean row_selected;
+ gboolean row_selected, is_drafts = FALSE;
gtk_tree_model_get (
model, iter,
COL_STRING_ICON_NAME, &icon_name,
COL_UINT_UNREAD_LAST_SEL, &old_unread,
- COL_UINT_UNREAD, &unread, -1);
+ COL_UINT_UNREAD, &unread,
+ COL_BOOL_IS_DRAFT, &is_drafts,
+ -1);
if (icon_name == NULL)
return;
@@ -989,7 +991,7 @@ render_icon (GtkTreeViewColumn *column,
row_selected = gtk_tree_selection_iter_is_selected (selection, iter);
/* Show an emblem if there's new mail. */
- if (!row_selected && unread > old_unread) {
+ if (!row_selected && unread > old_unread && !is_drafts) {
GIcon *temp_icon;
GEmblem *emblem;