aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2003-12-02 15:33:19 +0800
committerMichael Zucci <zucchi@src.gnome.org>2003-12-02 15:33:19 +0800
commit4efabf66a2602de4f23dad51ca9114c40cff77b4 (patch)
treec71048ecbcbb6dab622464c7f44725bf49094dc5 /mail
parente5ae94bcddd842ce0c64238117f96e70daabf459 (diff)
downloadgsoc2013-evolution-4efabf66a2602de4f23dad51ca9114c40cff77b4.tar.gz
gsoc2013-evolution-4efabf66a2602de4f23dad51ca9114c40cff77b4.tar.zst
gsoc2013-evolution-4efabf66a2602de4f23dad51ca9114c40cff77b4.zip
setup another image (followup completed) to flag status list.
2003-12-02 Not Zed <NotZed@Ximian.com> * message-list.c (message_list_create_extras): setup another image (followup completed) to flag status list. (states_pixmaps[]): added flag_for_followup_done. (ml_tree_value_at): return 0,1 or 2 for completed icon. also use the real ints, these shouldn't have been true/false. Bug #43514. svn path=/trunk/; revision=23570
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/message-list.c21
2 files changed, 21 insertions, 6 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index dfc30a058b..aa82ad9aa5 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,11 @@
2003-12-02 Not Zed <NotZed@Ximian.com>
+ * message-list.c (message_list_create_extras): setup another image
+ (followup completed) to flag status list.
+ (states_pixmaps[]): added flag_for_followup_done.
+ (ml_tree_value_at): return 0,1 or 2 for completed icon. also use
+ the real ints, these shouldn't have been true/false. Bug #43514.
+
* evolution-mail.schemas: Added empty_trash prompt key.
* em-utils.c (em_utils_prompt_user): changed to take the gconf
diff --git a/mail/message-list.c b/mail/message-list.c
index 7e62aa58f0..c1fb66c39e 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -76,6 +76,7 @@
#include "art/score-higher.xpm"
#include "art/score-highest.xpm"
#include "art/flag-for-followup.xpm"
+#include "art/flag-for-followup-done.xpm"
/*#define TIMEIT */
@@ -185,6 +186,7 @@ static struct {
{ score_higher_xpm, NULL },
{ score_highest_xpm, NULL },
{ flag_for_followup_xpm,NULL },
+ { flag_for_followup_done_xpm,NULL },
{ NULL, NULL }
};
@@ -1078,13 +1080,19 @@ ml_tree_value_at (ETreeModel *etm, ETreePath path, int col, void *model_data)
return GINT_TO_POINTER (score);
}
case COL_FOLLOWUP_FLAG_STATUS: {
- const char *tag;
+ const char *tag, *cmp;
+ /* FIXME: this all should be methods off of message-tag-followup class,
+ FIXME: the tag names should be namespaced :( */
tag = camel_tag_get ((CamelTag **) &msg_info->user_tags, "follow-up");
- if (tag && *tag)
- return GINT_TO_POINTER (TRUE);
- else
- return GINT_TO_POINTER (FALSE);
+ cmp = camel_tag_get ((CamelTag **) &msg_info->user_tags, "completed-on");
+ if (tag && tag[0]) {
+ if (cmp && cmp[0])
+ return GINT_TO_POINTER(2);
+ else
+ return GINT_TO_POINTER(1);
+ } else
+ return GINT_TO_POINTER(0);
}
case COL_FOLLOWUP_DUE_BY: {
const char *tag;
@@ -1313,7 +1321,8 @@ message_list_create_extras (void)
e_table_extras_add_cell (extras, "render_flagged", e_cell_toggle_new (0, 2, images));
images[1] = states_pixmaps [15].pixbuf;
- e_table_extras_add_cell (extras, "render_flag_status", e_cell_toggle_new (0, 2, images));
+ images[2] = states_pixmaps [16].pixbuf;
+ e_table_extras_add_cell (extras, "render_flag_status", e_cell_toggle_new (0, 3, images));
for (i = 0; i < 7; i++)
images[i] = states_pixmaps [i + 7].pixbuf;