diff options
author | Milan Crha <mcrha@redhat.com> | 2011-07-01 20:05:14 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2011-07-01 20:05:14 +0800 |
commit | 282100c65653293258d0f8471427be1ca54204e6 (patch) | |
tree | 17fed14bee05116081b44d8dd0042b4f31685ead | |
parent | 9b2de8c38d988aa50934e7d8181b6347bec18ba5 (diff) | |
download | gsoc2013-evolution-282100c65653293258d0f8471427be1ca54204e6.tar gsoc2013-evolution-282100c65653293258d0f8471427be1ca54204e6.tar.gz gsoc2013-evolution-282100c65653293258d0f8471427be1ca54204e6.tar.bz2 gsoc2013-evolution-282100c65653293258d0f8471427be1ca54204e6.tar.lz gsoc2013-evolution-282100c65653293258d0f8471427be1ca54204e6.tar.xz gsoc2013-evolution-282100c65653293258d0f8471427be1ca54204e6.tar.zst gsoc2013-evolution-282100c65653293258d0f8471427be1ca54204e6.zip |
Bug #499739 - "Flag for follow-up" should be easier to set
-rw-r--r-- | mail/message-list.c | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/mail/message-list.c b/mail/message-list.c index be7dda6052..3e04fb0f39 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -3969,12 +3969,38 @@ on_click (ETree *tree, gint row, ETreePath path, gint col, GdkEvent *event, Mess flag = CAMEL_MESSAGE_SEEN; else if (col == COL_FLAGGED) flag = CAMEL_MESSAGE_FLAGGED; - else + else if (col != COL_FOLLOWUP_FLAG_STATUS) return FALSE; if (!(info = get_message_info (list, path))) return FALSE; + if (col == COL_FOLLOWUP_FLAG_STATUS) { + const gchar *tag, *cmp; + + tag = camel_message_info_user_tag (info, "follow-up"); + cmp = camel_message_info_user_tag (info, "completed-on"); + if (tag && tag[0]) { + if (cmp && cmp[0]) { + camel_message_info_set_user_tag (info, "follow-up", NULL); + camel_message_info_set_user_tag (info, "due-by", NULL); + camel_message_info_set_user_tag (info, "completed-on", NULL); + } else { + gchar *text; + + text = camel_header_format_date (time (NULL), 0); + camel_message_info_set_user_tag (info, "completed-on", text); + g_free (text); + } + } else { + /* default follow-up flag name to use when clicked in the message list column */ + camel_message_info_set_user_tag (info, "follow-up", _("Follow-up")); + camel_message_info_set_user_tag (info, "completed-on", NULL); + } + + return TRUE; + } + flags = camel_message_info_flags (info); folder_is_trash = |