aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-06-20 10:09:07 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-06-21 03:31:50 +0800
commit31c6240eeba58231acd5c14e1a8b6e50d0bdcfb9 (patch)
tree86f7a16c1e7b6965dc3d519acfda5eee17568972 /mail
parent202fbf6580bfe766bc558d7c827e1591969ce30b (diff)
downloadgsoc2013-evolution-31c6240eeba58231acd5c14e1a8b6e50d0bdcfb9.tar.gz
gsoc2013-evolution-31c6240eeba58231acd5c14e1a8b6e50d0bdcfb9.tar.zst
gsoc2013-evolution-31c6240eeba58231acd5c14e1a8b6e50d0bdcfb9.zip
Remove e_tree_selected_row_foreach().
Reducing API bloat. Do this instead: selection = (ESelectionModel *) e_tree_get_selection_model (tree); e_selection_model_foreach (selection, callback, closure);
Diffstat (limited to 'mail')
-rw-r--r--mail/message-list.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mail/message-list.c b/mail/message-list.c
index bbad9e46c3..d15a202485 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -4817,12 +4817,13 @@ ml_getselcount_cb (gint model_row,
guint
message_list_selected_count (MessageList *message_list)
{
+ ESelectionModel *selection;
struct ml_count_data data = { message_list, 0 };
g_return_val_if_fail (IS_MESSAGE_LIST (message_list), 0);
- e_tree_selected_row_foreach (
- E_TREE (message_list), ml_getselcount_cb, &data);
+ selection = e_tree_get_selection_model (E_TREE (message_list));
+ e_selection_model_foreach (selection, ml_getselcount_cb, &data);
return data.count;
}