aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/groupwise-features/gw-ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/groupwise-features/gw-ui.c')
-rw-r--r--plugins/groupwise-features/gw-ui.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/plugins/groupwise-features/gw-ui.c b/plugins/groupwise-features/gw-ui.c
index 4a33a692cd..c1146ff4d1 100644
--- a/plugins/groupwise-features/gw-ui.c
+++ b/plugins/groupwise-features/gw-ui.c
@@ -204,19 +204,17 @@ update_mmp_entries_cb (EShellView *shell_view, gpointer user_data)
if (visible) {
EShellContent *shell_content;
EMailReader *reader;
- GtkWidget *message_list;
- GPtrArray *selected;
+ GPtrArray *uids;
shell_content = e_shell_view_get_shell_content (shell_view);
- reader = (EMailReader *) (shell_content);
- message_list = e_mail_reader_get_message_list (reader);
- selected = message_list_get_selected (MESSAGE_LIST (message_list));
+ reader = E_MAIL_READER (shell_content);
+ uids = e_mail_reader_get_selected_uids (reader);
- if (selected)
- n_selected = selected->len;
+ if (uids)
+ n_selected = uids->len;
- em_utils_uids_free (selected);
+ em_utils_uids_free (uids);
visible = n_selected > 0;
}