aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-reader.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/e-mail-reader.c')
-rw-r--r--mail/e-mail-reader.c25
1 files changed, 24 insertions, 1 deletions
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;