diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-05-29 06:15:21 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-05-29 06:15:21 +0800 |
commit | 5a39590c7a40dfe6effa3c5a3325b7baffb33b3e (patch) | |
tree | 1e1cfeacef72bde4700eb28b48bd99114755bb3a /mail/em-folder-tree-model.c | |
parent | f3fff4c7103b79c9b5b70948fd7d6de949f561a7 (diff) | |
download | gsoc2013-evolution-5a39590c7a40dfe6effa3c5a3325b7baffb33b3e.tar gsoc2013-evolution-5a39590c7a40dfe6effa3c5a3325b7baffb33b3e.tar.gz gsoc2013-evolution-5a39590c7a40dfe6effa3c5a3325b7baffb33b3e.tar.bz2 gsoc2013-evolution-5a39590c7a40dfe6effa3c5a3325b7baffb33b3e.tar.lz gsoc2013-evolution-5a39590c7a40dfe6effa3c5a3325b7baffb33b3e.tar.xz gsoc2013-evolution-5a39590c7a40dfe6effa3c5a3325b7baffb33b3e.tar.zst gsoc2013-evolution-5a39590c7a40dfe6effa3c5a3325b7baffb33b3e.zip |
Add em_folder_tree_model_list_stores().
Lists all the CamelStores added to EMFolderTreeModel. Note that
CamelStores with a corresponding EAccount are only added if the EAccount
is enabled, so it's safe to assume all returned CamelStores are enabled.
Diffstat (limited to 'mail/em-folder-tree-model.c')
-rw-r--r-- | mail/em-folder-tree-model.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mail/em-folder-tree-model.c b/mail/em-folder-tree-model.c index 7c4bbeb938..79955504d6 100644 --- a/mail/em-folder-tree-model.c +++ b/mail/em-folder-tree-model.c @@ -1111,6 +1111,14 @@ em_folder_tree_model_remove_store (EMFolderTreeModel *model, em_folder_tree_model_remove_folders (model, si, &iter); } +GList * +em_folder_tree_model_list_stores (EMFolderTreeModel *model) +{ + g_return_val_if_fail (EM_IS_FOLDER_TREE_MODEL (model), NULL); + + return g_hash_table_get_keys (model->priv->store_index); +} + void em_folder_tree_model_remove_folders (EMFolderTreeModel *model, EMFolderTreeModelStoreInfo *si, |