diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-08-16 05:36:43 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-09-14 20:08:50 +0800 |
commit | 08e62014fe4a11e3c9b4c4c46339684af36ef5ef (patch) | |
tree | f4ec2dd6001cc5f711c33d1e0da08f529f0381a7 /mail/em-folder-utils.c | |
parent | c34f5d0503572d1942671d9047ee56d25e3d40ff (diff) | |
download | gsoc2013-evolution-08e62014fe4a11e3c9b4c4c46339684af36ef5ef.tar gsoc2013-evolution-08e62014fe4a11e3c9b4c4c46339684af36ef5ef.tar.gz gsoc2013-evolution-08e62014fe4a11e3c9b4c4c46339684af36ef5ef.tar.bz2 gsoc2013-evolution-08e62014fe4a11e3c9b4c4c46339684af36ef5ef.tar.lz gsoc2013-evolution-08e62014fe4a11e3c9b4c4c46339684af36ef5ef.tar.xz gsoc2013-evolution-08e62014fe4a11e3c9b4c4c46339684af36ef5ef.tar.zst gsoc2013-evolution-08e62014fe4a11e3c9b4c4c46339684af36ef5ef.zip |
Adapt to new CamelSubscribable interface.
Diffstat (limited to 'mail/em-folder-utils.c')
-rw-r--r-- | mail/em-folder-utils.c | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/mail/em-folder-utils.c b/mail/em-folder-utils.c index f43a929064..1ac8b33fd2 100644 --- a/mail/em-folder-utils.c +++ b/mail/em-folder-utils.c @@ -194,9 +194,10 @@ emft_copy_folders__exec (struct _EMCopyFolders *m, goto exception; /* this folder no longer exists, unsubscribe it */ - if (camel_store_supports_subscriptions (m->fromstore)) - camel_store_unsubscribe_folder_sync ( - m->fromstore, info->full_name, NULL, NULL); + if (CAMEL_IS_SUBSCRIBABLE (m->fromstore)) + camel_subscribable_unsubscribe_folder_sync ( + CAMEL_SUBSCRIBABLE (m->fromstore), + info->full_name, NULL, NULL); deleted = 1; } else { @@ -238,10 +239,13 @@ emft_copy_folders__exec (struct _EMCopyFolders *m, deleting = g_list_prepend (deleting, info); /* subscribe to the new folder if appropriate */ - if (camel_store_supports_subscriptions (m->tostore) - && !camel_store_folder_is_subscribed (m->tostore, toname->str)) - camel_store_subscribe_folder_sync ( - m->tostore, toname->str, NULL, NULL); + if (CAMEL_IS_SUBSCRIBABLE (m->tostore) + && !camel_subscribable_folder_is_subscribed ( + CAMEL_SUBSCRIBABLE (m->tostore), + toname->str)) + camel_subscribable_subscribe_folder_sync ( + CAMEL_SUBSCRIBABLE (m->tostore), + toname->str, NULL, NULL); info = info->next; } @@ -258,9 +262,10 @@ emft_copy_folders__exec (struct _EMCopyFolders *m, /* FIXME: we need to do something with the exception since otherwise the users sees a failed operation with no error message or even any warnings */ - if (camel_store_supports_subscriptions (m->fromstore)) - camel_store_unsubscribe_folder_sync ( - m->fromstore, info->full_name, NULL, NULL); + if (CAMEL_IS_SUBSCRIBABLE (m->fromstore)) + camel_subscribable_unsubscribe_folder_sync ( + CAMEL_SUBSCRIBABLE (m->fromstore), + info->full_name, NULL, NULL); camel_store_delete_folder_sync ( m->fromstore, info->full_name, NULL, NULL); |