diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-04-26 20:36:24 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-04-30 23:30:19 +0800 |
commit | aec33928b7b77fe64b0afdf13b5db126e7f5dfac (patch) | |
tree | 04236fce76b859c96dc977741106aa06e28aa977 /plugins/groupwise-features/share-folder-common.c | |
parent | 2214b6049d9402f91567d1bea66259b29993ae9f (diff) | |
download | gsoc2013-evolution-aec33928b7b77fe64b0afdf13b5db126e7f5dfac.tar.gz gsoc2013-evolution-aec33928b7b77fe64b0afdf13b5db126e7f5dfac.tar.zst gsoc2013-evolution-aec33928b7b77fe64b0afdf13b5db126e7f5dfac.zip |
Adapt to Camel API changes.
Diffstat (limited to 'plugins/groupwise-features/share-folder-common.c')
-rw-r--r-- | plugins/groupwise-features/share-folder-common.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/plugins/groupwise-features/share-folder-common.c b/plugins/groupwise-features/share-folder-common.c index 10e9b341dc..91758da535 100644 --- a/plugins/groupwise-features/share-folder-common.c +++ b/plugins/groupwise-features/share-folder-common.c @@ -93,12 +93,14 @@ void shared_folder_commit (EPlugin *ep, EConfigTarget *tget) { EMConfigTargetFolder *target = (EMConfigTargetFolder *)tget->config->target; - CamelFolder *folder = target->folder; - CamelStore *store = folder->parent_store; + CamelStore *parent_store; EMFolderTreeModel *model = NULL; /*mail_component_peek_tree_model (mail_component_peek ())*/; + + parent_store = camel_folder_get_parent_store (target->folder); + if (common) { share_folder (common); - refresh_folder_tree (model, store); + refresh_folder_tree (model, parent_store); g_object_run_dispose ((GObject *)common); common = NULL; } @@ -370,7 +372,7 @@ org_gnome_shared_folder_factory (EPlugin *ep, EConfigHookItemFactoryData *hook_d EMConfigTargetFolder *target= (EMConfigTargetFolder *)hook_data->config->target; CamelFolder *folder = target->folder; - folder_name = g_strdup (folder->full_name); + folder_name = g_strdup (camel_folder_get_full_name (folder)); folderuri = g_strdup(target->uri); if (folderuri && folder_name) account = g_strrstr(folderuri, "groupwise"); @@ -396,8 +398,10 @@ org_gnome_shared_folder_factory (EPlugin *ep, EConfigHookItemFactoryData *hook_d } if (account) { - CamelStore *store = folder->parent_store; - cnc = get_cnc (store); + CamelStore *parent_store; + + parent_store = camel_folder_get_parent_store (folder); + cnc = get_cnc (parent_store); if (E_IS_GW_CONNECTION (cnc)) id = get_container_id (cnc, folder_name); |