aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-folder-cache.c
diff options
context:
space:
mode:
authorJason Leach <jleach@ximian.com>2001-08-04 07:12:14 +0800
committerJacob Leach <jleach@src.gnome.org>2001-08-04 07:12:14 +0800
commit3732e11bafb7719d34919947938fb5ca7720813c (patch)
treebebb038a809d693bff7bc74b6a673133f617b77b /mail/mail-folder-cache.c
parent3a3d80fa14de277592c8764699a9911ed837073c (diff)
downloadgsoc2013-evolution-3732e11bafb7719d34919947938fb5ca7720813c.tar.gz
gsoc2013-evolution-3732e11bafb7719d34919947938fb5ca7720813c.tar.zst
gsoc2013-evolution-3732e11bafb7719d34919947938fb5ca7720813c.zip
Updates for EvolutionStorage API changes.
2001-08-03 Jason Leach <jleach@ximian.com> * mail-folder-cache.c (update_idle): Updates for EvolutionStorage API changes. * mail-importer.c (mail_importer_create_folder): Ditto. * mail-local.c: Same here. svn path=/trunk/; revision=11636
Diffstat (limited to 'mail/mail-folder-cache.c')
-rw-r--r--mail/mail-folder-cache.c33
1 files changed, 13 insertions, 20 deletions
diff --git a/mail/mail-folder-cache.c b/mail/mail-folder-cache.c
index b2baf23f2c..6c71762dbe 100644
--- a/mail/mail-folder-cache.c
+++ b/mail/mail-folder-cache.c
@@ -62,7 +62,7 @@ typedef enum mail_folder_info_update_mode {
typedef union mail_folder_info_update_info {
EvolutionStorage *es;
- GNOME_Evolution_LocalStorage ls;
+ GNOME_Evolution_Storage ls;
} mfiui;
typedef struct _mail_folder_info {
@@ -198,7 +198,6 @@ update_idle (gpointer user_data)
{
mail_folder_info *mfi = (mail_folder_info *) user_data;
gchar *f_name, *f_status;
- gboolean bold;
gchar *uri, *path;
mfiui info;
mfium mode;
@@ -230,14 +229,6 @@ update_idle (gpointer user_data)
f_name = make_folder_name (mfi);
f_status = make_folder_status (mfi);
- /* bold? */
-
- if (mfi->flags & MAIL_FIF_UNREAD_VALID &&
- mfi->unread)
- bold = TRUE;
- else
- bold = FALSE;
-
/* Set the value */
/* Who knows how long these corba calls will take?
@@ -261,13 +252,12 @@ update_idle (gpointer user_data)
switch (mode) {
case MAIL_FIUM_LOCAL_STORAGE:
- d(g_message("Updating via LocalStorage"));
CORBA_exception_init (&ev);
- GNOME_Evolution_LocalStorage_updateFolder (info.ls,
- path,
- f_name,
- bold,
- &ev);
+ GNOME_Evolution_Storage_updateFolder (info.ls,
+ mfi->path,
+ mfi->name,
+ mfi->unread,
+ &ev);
if (BONOBO_EX (&ev))
g_warning ("Exception in local storage update: %s",
bonobo_exception_get_text (&ev));
@@ -277,8 +267,8 @@ update_idle (gpointer user_data)
d(g_message("Updating via EvolutionStorage"));
evolution_storage_update_folder_by_uri (info.es,
uri,
- f_name,
- bold);
+ mfi->name,
+ mfi->unread);
break;
case MAIL_FIUM_UNKNOWN:
default:
@@ -554,7 +544,8 @@ get_mail_info (CamelFolder *folder, mail_folder_info *mfi)
/* Public functions */
void
-mail_folder_cache_set_update_estorage (const gchar *uri, EvolutionStorage *estorage)
+mail_folder_cache_set_update_estorage (const gchar *uri,
+ EvolutionStorage *estorage)
{
mail_folder_info *mfi;
@@ -579,7 +570,9 @@ mail_folder_cache_set_update_estorage (const gchar *uri, EvolutionStorage *estor
}
void
-mail_folder_cache_set_update_lstorage (const gchar *uri, GNOME_Evolution_LocalStorage lstorage, const gchar *path)
+mail_folder_cache_set_update_lstorage (const gchar *uri,
+ GNOME_Evolution_Storage lstorage,
+ const gchar *path)
{
mail_folder_info *mfi;