From 7a086cbcd0592e4c133c5761c65fa291b6d05d04 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Wed, 25 Nov 2009 09:20:19 -0500 Subject: =?UTF-8?q?Bug=C2=A0602799=20-=20"Mark=20for=20Follow=20Up"=20menu?= =?UTF-8?q?=20item=20glitches?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mail/e-mail-reader.c | 25 ++++++++++++++++++++++++- ui/evolution-mail.ui | 2 ++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/mail/e-mail-reader.c b/mail/e-mail-reader.c index 847ffd2aa0..f70b32af6a 100644 --- a/mail/e-mail-reader.c +++ b/mail/e-mail-reader.c @@ -1582,6 +1582,14 @@ static EPopupActionEntry mail_reader_popup_entries[] = { NULL, "mail-delete" }, + { "mail-popup-flag-clear", + NULL, + "mail-flag-clear" }, + + { "mail-popup-flag-completed", + NULL, + "mail-flag-completed" }, + { "mail-popup-flag-for-followup", N_("Mark for Follo_w Up..."), "mail-flag-for-followup" }, @@ -2124,6 +2132,21 @@ mail_reader_update_actions (EMailReader *reader) action = e_mail_reader_get_action (reader, action_name); gtk_action_set_sensitive (action, sensitive); + action_name = "mail-flag-clear"; + sensitive = enable_flag_clear; + action = e_mail_reader_get_action (reader, action_name); + gtk_action_set_sensitive (action, sensitive); + + action_name = "mail-flag-completed"; + sensitive = enable_flag_completed; + action = e_mail_reader_get_action (reader, action_name); + gtk_action_set_sensitive (action, sensitive); + + action_name = "mail-flag-for-followup"; + sensitive = enable_flag_for_followup; + action = e_mail_reader_get_action (reader, action_name); + gtk_action_set_sensitive (action, sensitive); + action_name = "mail-forward"; sensitive = have_an_account && any_messages_selected; action = e_mail_reader_get_action (reader, action_name); @@ -2727,7 +2750,7 @@ e_mail_reader_check_state (EMailReader *reader) can_clear_flags = TRUE; tag = camel_message_info_user_tag ( info, "completed-on"); - if (tag != NULL && *tag != '\0') + if (tag == NULL || *tag == '\0') can_flag_completed = TRUE; } else can_flag_for_followup = TRUE; diff --git a/ui/evolution-mail.ui b/ui/evolution-mail.ui index 0964971b83..f2c162c387 100644 --- a/ui/evolution-mail.ui +++ b/ui/evolution-mail.ui @@ -101,6 +101,8 @@ + + -- cgit v1.2.3