aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-05-24 14:58:13 +0800
committerMilan Crha <mcrha@redhat.com>2012-05-24 14:58:13 +0800
commitc84be7f376951c59ad9aa685c366ecb148e0ba60 (patch)
treefce819fd82e0217cebfc1a4ff4f92c83c7bc75ee /mail
parentd04dd269e1be631f201fdf34bf56410313db3e74 (diff)
downloadgsoc2013-evolution-c84be7f376951c59ad9aa685c366ecb148e0ba60.tar
gsoc2013-evolution-c84be7f376951c59ad9aa685c366ecb148e0ba60.tar.gz
gsoc2013-evolution-c84be7f376951c59ad9aa685c366ecb148e0ba60.tar.bz2
gsoc2013-evolution-c84be7f376951c59ad9aa685c366ecb148e0ba60.tar.lz
gsoc2013-evolution-c84be7f376951c59ad9aa685c366ecb148e0ba60.tar.xz
gsoc2013-evolution-c84be7f376951c59ad9aa685c366ecb148e0ba60.tar.zst
gsoc2013-evolution-c84be7f376951c59ad9aa685c366ecb148e0ba60.zip
Avoid New unread icon emblem on virtual folders
Diffstat (limited to 'mail')
-rw-r--r--mail/em-folder-tree.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c
index 00641d7d30..d55253e388 100644
--- a/mail/em-folder-tree.c
+++ b/mail/em-folder-tree.c
@@ -808,6 +808,7 @@ folder_tree_render_icon (GtkTreeViewColumn *column,
gboolean is_selected;
gboolean is_drafts = FALSE;
gboolean is_drag_dest = FALSE;
+ guint32 fi_flags = 0;
gtk_tree_model_get (
model, iter,
@@ -815,6 +816,7 @@ folder_tree_render_icon (GtkTreeViewColumn *column,
COL_UINT_UNREAD_LAST_SEL, &old_unread,
COL_UINT_UNREAD, &unread,
COL_BOOL_IS_DRAFT, &is_drafts,
+ COL_UINT_FLAGS, &fi_flags,
-1);
if (icon_name == NULL)
@@ -850,7 +852,7 @@ folder_tree_render_icon (GtkTreeViewColumn *column,
icon = g_themed_icon_new (icon_name);
/* Show an emblem if there's new mail. */
- if (!is_selected && unread > old_unread && !is_drafts) {
+ if (!is_selected && unread > old_unread && !is_drafts && !(fi_flags & CAMEL_FOLDER_VIRTUAL)) {
GIcon *temp_icon;
GEmblem *emblem;