[evolution/webkit] mail_vfolder_add_folder(): Change parameters.
- From: Dan VrÃtil <dvratil src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/webkit] mail_vfolder_add_folder(): Change parameters.
- Date: Mon, 11 Jul 2011 14:51:29 +0000 (UTC)
commit 047022bc8b3667a3ad60c928680f54e93e009b8e
Author: Matthew Barnes <mbarnes redhat com>
Date: Wed Jun 1 05:12:45 2011 -0400
mail_vfolder_add_folder(): Change parameters.
Take an EMailBackend instead of an EMailSession.
mail/mail-vfolder.c | 19 +++++++++++--------
1 files changed, 11 insertions(+), 8 deletions(-)
---
diff --git a/mail/mail-vfolder.c b/mail/mail-vfolder.c
index faa5a6e..c8e7bab 100644
--- a/mail/mail-vfolder.c
+++ b/mail/mail-vfolder.c
@@ -416,7 +416,7 @@ folder_is_spethal (CamelStore *store,
/**
* mail_vfolder_add_folder:
- * @session: an #EMailSession
+ * @backend: an #EMailBackend
* @store: a #CamelStore
* @folder: a folder name
* @remove: whether the folder should be removed or added
@@ -433,11 +433,12 @@ folder_is_spethal (CamelStore *store,
* NOTE: This function must be called from the main thread.
*/
static void
-mail_vfolder_add_folder (EMailSession *session,
+mail_vfolder_add_folder (EMailBackend *backend,
CamelStore *store,
const gchar *folder_name,
gint remove)
{
+ EMailSession *session;
EFilterRule *rule;
const gchar *source;
CamelVeeFolder *vf;
@@ -447,6 +448,8 @@ mail_vfolder_add_folder (EMailSession *session,
gint is_ignore;
gchar *uri;
+ session = e_mail_backend_get_session (backend);
+
provider = camel_service_get_provider (CAMEL_SERVICE (store));
remote = (provider->flags & CAMEL_PROVIDER_IS_REMOTE) != 0;
@@ -1018,18 +1021,18 @@ static void
folder_available_cb (MailFolderCache *cache,
CamelStore *store,
const gchar *folder_name,
- EMailSession *session)
+ EMailBackend *backend)
{
- mail_vfolder_add_folder (session, store, folder_name, FALSE);
+ mail_vfolder_add_folder (backend, store, folder_name, FALSE);
}
static void
folder_unavailable_cb (MailFolderCache *cache,
CamelStore *store,
const gchar *folder_name,
- EMailSession *session)
+ EMailBackend *backend)
{
- mail_vfolder_add_folder (session, store, folder_name, TRUE);
+ mail_vfolder_add_folder (backend, store, folder_name, TRUE);
}
static void
@@ -1156,10 +1159,10 @@ vfolder_load_storage (EMailBackend *backend)
g_signal_connect (
folder_cache, "folder-available",
- G_CALLBACK (folder_available_cb), session);
+ G_CALLBACK (folder_available_cb), backend);
g_signal_connect (
folder_cache, "folder-unavailable",
- G_CALLBACK (folder_unavailable_cb), session);
+ G_CALLBACK (folder_unavailable_cb), backend);
g_signal_connect (
folder_cache, "folder-deleted",
G_CALLBACK (folder_deleted_cb), backend);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]