diff options
author | Milan Crha <mcrha@redhat.com> | 2010-04-01 21:25:16 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2010-04-01 21:25:16 +0800 |
commit | b3c6fdfc6b91198da99d435fc85c39d58e6dc347 (patch) | |
tree | 093888030845cf0cfb7b0a7203fc19c6ce80852a | |
parent | e835906dcc57e84aab564a6edfda5ac28e9c628a (diff) | |
download | gsoc2013-evolution-b3c6fdfc6b91198da99d435fc85c39d58e6dc347.tar gsoc2013-evolution-b3c6fdfc6b91198da99d435fc85c39d58e6dc347.tar.gz gsoc2013-evolution-b3c6fdfc6b91198da99d435fc85c39d58e6dc347.tar.bz2 gsoc2013-evolution-b3c6fdfc6b91198da99d435fc85c39d58e6dc347.tar.lz gsoc2013-evolution-b3c6fdfc6b91198da99d435fc85c39d58e6dc347.tar.xz gsoc2013-evolution-b3c6fdfc6b91198da99d435fc85c39d58e6dc347.tar.zst gsoc2013-evolution-b3c6fdfc6b91198da99d435fc85c39d58e6dc347.zip |
Bug #613354 - Folder->Mark all messages as read does not work
-rw-r--r-- | modules/mail/e-mail-shell-view-actions.c | 6 |
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 5b6f483706..afe1629e4f 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++) |