diff options
author | Milan Crha <mcrha@redhat.com> | 2011-07-01 20:05:14 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-09-14 20:08:33 +0800 |
commit | 963b1db98fb369af69418b059eab06fc4187c4c3 (patch) | |
tree | c627eda1353c3278d036eac5dc3df0cae5866908 | |
parent | 0e43688829ff43d305d9c50d9b4e7ebbc678f89d (diff) | |
download | gsoc2013-evolution-963b1db98fb369af69418b059eab06fc4187c4c3.tar gsoc2013-evolution-963b1db98fb369af69418b059eab06fc4187c4c3.tar.gz gsoc2013-evolution-963b1db98fb369af69418b059eab06fc4187c4c3.tar.bz2 gsoc2013-evolution-963b1db98fb369af69418b059eab06fc4187c4c3.tar.lz gsoc2013-evolution-963b1db98fb369af69418b059eab06fc4187c4c3.tar.xz gsoc2013-evolution-963b1db98fb369af69418b059eab06fc4187c4c3.tar.zst gsoc2013-evolution-963b1db98fb369af69418b059eab06fc4187c4c3.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 = |