aboutsummaryrefslogtreecommitdiffstats
path: root/mail/message-list.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2002-07-16 10:38:41 +0800
committerMichael Zucci <zucchi@src.gnome.org>2002-07-16 10:38:41 +0800
commit7f0ab8334b1dcdf8beb19ea28005ba6055c7bfc0 (patch)
tree319340d3b5cb0a0d45e872b869875e7c2c100bb8 /mail/message-list.c
parent09a5b6b00a5ace026bf019e3a6eba905e4312d2d (diff)
downloadgsoc2013-evolution-7f0ab8334b1dcdf8beb19ea28005ba6055c7bfc0.tar
gsoc2013-evolution-7f0ab8334b1dcdf8beb19ea28005ba6055c7bfc0.tar.gz
gsoc2013-evolution-7f0ab8334b1dcdf8beb19ea28005ba6055c7bfc0.tar.bz2
gsoc2013-evolution-7f0ab8334b1dcdf8beb19ea28005ba6055c7bfc0.tar.lz
gsoc2013-evolution-7f0ab8334b1dcdf8beb19ea28005ba6055c7bfc0.tar.xz
gsoc2013-evolution-7f0ab8334b1dcdf8beb19ea28005ba6055c7bfc0.tar.zst
gsoc2013-evolution-7f0ab8334b1dcdf8beb19ea28005ba6055c7bfc0.zip
Lookup the label colour based on the label token, not an integer.
2002-07-15 Not Zed <NotZed@Ximian.com> * message-list.c (ml_tree_value_at): Lookup the label colour based on the label token, not an integer. * folder-browser.c (on_right_click): Lookup the label name from the filter type. Sigh, a bunch of other code should do similar but i'm going to leave it as integers. (set_msg_label): Set the label directly. svn path=/trunk/; revision=17473
Diffstat (limited to 'mail/message-list.c')
-rw-r--r--mail/message-list.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mail/message-list.c b/mail/message-list.c
index a96b2ed473..3175c4e5b1 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -37,6 +37,8 @@
#include <e-util/ename/e-name-western.h>
#include <e-util/e-memory.h>
+#include "filter/filter-label.h"
+
#include "mail-config.h"
#include "message-list.h"
#include "mail-mt.h"
@@ -987,7 +989,7 @@ ml_tree_value_at (ETreeModel *etm, ETreePath path, int col, void *model_data)
label = camel_tag_get ((CamelTag **) &msg_info->user_tags, "label");
if (colour == NULL) {
if (label != NULL) {
- colour = mail_config_get_label_color_string (atoi (label));
+ colour = mail_config_get_label_color_string (filter_label_index(label));
} else if (msg_info->flags & CAMEL_MESSAGE_FLAGGED) {
/* FIXME: extract from the xpm somehow. */
colour = "#A7453E";