diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-06-20 11:05:40 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-06-21 03:31:50 +0800 |
commit | de9391e246bcbf1ff5734e47eccec07bdc4113b8 (patch) | |
tree | cf59f9fc93a2a82a8943e15d9dff4a99a50fd483 /mail | |
parent | 31c6240eeba58231acd5c14e1a8b6e50d0bdcfb9 (diff) | |
download | gsoc2013-evolution-de9391e246bcbf1ff5734e47eccec07bdc4113b8.tar gsoc2013-evolution-de9391e246bcbf1ff5734e47eccec07bdc4113b8.tar.gz gsoc2013-evolution-de9391e246bcbf1ff5734e47eccec07bdc4113b8.tar.bz2 gsoc2013-evolution-de9391e246bcbf1ff5734e47eccec07bdc4113b8.tar.lz gsoc2013-evolution-de9391e246bcbf1ff5734e47eccec07bdc4113b8.tar.xz gsoc2013-evolution-de9391e246bcbf1ff5734e47eccec07bdc4113b8.tar.zst gsoc2013-evolution-de9391e246bcbf1ff5734e47eccec07bdc4113b8.zip |
Remove e_tree_selected_path_foreach().
Reducing API bloat. Do this instead:
selection = (ETreeSelectionModel *) e_tree_get_selection_model (tree);
e_tree_selection_model_foreach (selection, callback, closure);
Diffstat (limited to 'mail')
-rw-r--r-- | mail/message-list.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/mail/message-list.c b/mail/message-list.c index d15a202485..e6f16574c7 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -1104,7 +1104,7 @@ select_thread (MessageList *message_list, tree = E_TREE (message_list); etsm = (ETreeSelectionModel *) e_tree_get_selection_model (tree); - e_tree_selected_path_foreach (tree, selector, &tsi); + e_tree_selection_model_foreach (etsm, selector, &tsi); e_tree_selection_model_select_paths (etsm, tsi.paths); @@ -4672,6 +4672,7 @@ GPtrArray * message_list_get_selected (MessageList *message_list) { CamelFolder *folder; + ESelectionModel *selection; struct _ml_selected_data data = { message_list, @@ -4680,8 +4681,10 @@ message_list_get_selected (MessageList *message_list) g_ptr_array_set_free_func (data.uids, (GDestroyNotify) g_free); - e_tree_selected_path_foreach ( - E_TREE (message_list), + selection = e_tree_get_selection_model (E_TREE (message_list)); + + e_tree_selection_model_foreach ( + E_TREE_SELECTION_MODEL (selection), (ETreeForeachFunc) ml_getselected_cb, &data); folder = message_list_ref_folder (message_list); |