diff options
author | Milan Crha <mcrha@redhat.com> | 2012-02-07 21:36:17 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2012-02-07 21:36:17 +0800 |
commit | 0972cb0671b13783594ba9ad92c604e27e479152 (patch) | |
tree | c3570db3e3e97d075a7f0e5ed3559db85dcc139a /mail | |
parent | 5483b65b5e2212383b4ecf9a8fe9ef958ef582ad (diff) | |
download | gsoc2013-evolution-0972cb0671b13783594ba9ad92c604e27e479152.tar gsoc2013-evolution-0972cb0671b13783594ba9ad92c604e27e479152.tar.gz gsoc2013-evolution-0972cb0671b13783594ba9ad92c604e27e479152.tar.bz2 gsoc2013-evolution-0972cb0671b13783594ba9ad92c604e27e479152.tar.lz gsoc2013-evolution-0972cb0671b13783594ba9ad92c604e27e479152.tar.xz gsoc2013-evolution-0972cb0671b13783594ba9ad92c604e27e479152.tar.zst gsoc2013-evolution-0972cb0671b13783594ba9ad92c604e27e479152.zip |
Bug #553796 - Unable to Reset Message Color
Diffstat (limited to 'mail')
-rw-r--r-- | mail/em-filter-i18n.h | 1 | ||||
-rw-r--r-- | mail/filtertypes.xml | 4 | ||||
-rw-r--r-- | mail/message-list.c | 5 |
3 files changed, 9 insertions, 1 deletions
diff --git a/mail/em-filter-i18n.h b/mail/em-filter-i18n.h index ba16ee3ebf..4173b6656e 100644 --- a/mail/em-filter-i18n.h +++ b/mail/em-filter-i18n.h @@ -72,4 +72,5 @@ gchar *s = N_("starts with"); gchar *s = N_("Status"); gchar *s = N_("Stop Processing"); gchar *s = N_("Subject"); +gchar *s = N_("Unset Color"); gchar *s = N_("Unset Status"); diff --git a/mail/filtertypes.xml b/mail/filtertypes.xml index 9a705ab98a..3e9bd08343 100644 --- a/mail/filtertypes.xml +++ b/mail/filtertypes.xml @@ -931,6 +931,10 @@ <code>(set-color ${colour})</code> <input type="colour" name="colour"/> </part> + <part name="unset-color"> + <title>Unset Color</title> + <code>(set-color "")</code> + </part> <part name="score"> <title>Assign Score</title> <code>(set-score ${score})</code> diff --git a/mail/message-list.c b/mail/message-list.c index 82f6540b1a..fc35e3f47f 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -1704,7 +1704,7 @@ ml_tree_value_at_ex (ETreeModel *etm, /* To add to the woes, what color to show when the user choose multiple labels ? Don't say that I need to have the new labels[with subject] column visible always */ - colour = camel_message_info_user_tag(msg_info, "color"); + colour = NULL; due_by = camel_message_info_user_tag(msg_info, "due-by"); completed = camel_message_info_user_tag(msg_info, "completed-on"); followup = camel_message_info_user_tag(msg_info, "follow-up"); @@ -1746,6 +1746,9 @@ ml_tree_value_at_ex (ETreeModel *etm, g_hash_table_destroy (ld.labels_tag2iter); } + if (!colour) + colour = camel_message_info_user_tag (msg_info, "color"); + return (gpointer) colour; } case COL_LOCATION: { |