aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-folder-cache.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-08-16 05:36:43 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-08-16 07:07:13 +0800
commitf3648e1cb5f1a2537b557bce2ff9b0bc4f17c751 (patch)
tree24e6c4f74a75543d7491ab8027abf3c8d94fd10f /mail/mail-folder-cache.c
parent4ba4bdd01266ce0c3642f92093f4ff2e09348fff (diff)
downloadgsoc2013-evolution-f3648e1cb5f1a2537b557bce2ff9b0bc4f17c751.tar.gz
gsoc2013-evolution-f3648e1cb5f1a2537b557bce2ff9b0bc4f17c751.tar.zst
gsoc2013-evolution-f3648e1cb5f1a2537b557bce2ff9b0bc4f17c751.zip
Adapt to new CamelSubscribable interface.
Diffstat (limited to 'mail/mail-folder-cache.c')
-rw-r--r--mail/mail-folder-cache.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/mail/mail-folder-cache.c b/mail/mail-folder-cache.c
index 152d8fdecd..e8f183f339 100644
--- a/mail/mail-folder-cache.c
+++ b/mail/mail-folder-cache.c
@@ -515,7 +515,7 @@ store_folder_created_cb (CamelStore *store,
{
/* We only want created events to do more work
* if we dont support subscriptions. */
- if (!camel_store_supports_subscriptions (store))
+ if (!CAMEL_IS_SUBSCRIBABLE (store))
store_folder_subscribed_cb (store, info, cache);
}
@@ -555,7 +555,7 @@ store_folder_deleted_cb (CamelStore *store,
{
/* We only want deleted events to do more work
* if we dont support subscriptions. */
- if (!camel_store_supports_subscriptions (store))
+ if (!CAMEL_IS_SUBSCRIBABLE (store))
store_folder_unsubscribed_cb (store, info, self);
}
@@ -1177,6 +1177,9 @@ mail_folder_cache_note_store (MailFolderCache *self,
g_signal_connect (
store, "folder-renamed",
G_CALLBACK (store_folder_renamed_cb), self);
+ }
+
+ if (hook && CAMEL_IS_SUBSCRIBABLE (store)) {
g_signal_connect (
store, "folder-subscribed",
G_CALLBACK (store_folder_subscribed_cb), self);