aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-04-01 21:26:10 +0800
committerMilan Crha <mcrha@redhat.com>2010-04-01 21:26:10 +0800
commit841fa6274b1390bde05a8327ee026cf91666852f (patch)
treea486f8dd4f87fb8a2fc9a4c6fdc22539bc3a2fa9
parent9b0a5ed323e176bba841ee6bf755e3526f436706 (diff)
downloadgsoc2013-evolution-841fa6274b1390bde05a8327ee026cf91666852f.tar
gsoc2013-evolution-841fa6274b1390bde05a8327ee026cf91666852f.tar.gz
gsoc2013-evolution-841fa6274b1390bde05a8327ee026cf91666852f.tar.bz2
gsoc2013-evolution-841fa6274b1390bde05a8327ee026cf91666852f.tar.lz
gsoc2013-evolution-841fa6274b1390bde05a8327ee026cf91666852f.tar.xz
gsoc2013-evolution-841fa6274b1390bde05a8327ee026cf91666852f.tar.zst
gsoc2013-evolution-841fa6274b1390bde05a8327ee026cf91666852f.zip
Bug #613354 - Folder->Mark all messages as read does not work
-rw-r--r--modules/mail/e-mail-shell-view-actions.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/mail/e-mail-shell-view-actions.c b/modules/mail/e-mail-shell-view-actions.c
index b3d19fc172..732b65060f 100644
--- a/modules/mail/e-mail-shell-view-actions.c
+++ b/modules/mail/e-mail-shell-view-actions.c
@@ -216,6 +216,7 @@ action_mail_folder_mark_all_as_read_cb (GtkAction *action,
EShellView *shell_view;
CamelFolder *folder;
GtkWindow *parent;
+ MessageList *message_list;
GPtrArray *uids;
const gchar *key;
const gchar *prompt;
@@ -236,7 +237,10 @@ action_mail_folder_mark_all_as_read_cb (GtkAction *action,
if (!em_utils_prompt_user (parent, key, prompt, NULL))
return;
- uids = e_mail_reader_get_selected_uids (reader);
+ message_list = MESSAGE_LIST (e_mail_reader_get_message_list (reader));
+ g_return_if_fail (message_list != NULL);
+
+ uids = message_list_get_uids (message_list);
camel_folder_freeze (folder);
for (ii = 0; ii < uids->len; ii++)