diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2003-11-14 06:33:02 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-11-14 06:33:02 +0800 |
commit | f3fe0dd7a31616426fc41fc41954c7b40ee8f20f (patch) | |
tree | 43873596c2c3b7fd60125ed3b21ad3d01e9d27be /mail/mail-offline-handler.c | |
parent | 5c8d360c983f9362cd96c59089b9f2b8fc415847 (diff) | |
download | gsoc2013-evolution-f3fe0dd7a31616426fc41fc41954c7b40ee8f20f.tar.gz gsoc2013-evolution-f3fe0dd7a31616426fc41fc41954c7b40ee8f20f.tar.zst gsoc2013-evolution-f3fe0dd7a31616426fc41fc41954c7b40ee8f20f.zip |
Updated for function name changes in mail-component.c
2003-11-13 Jeffrey Stedfast <fejj@ximian.com>
* mail-vfolder.c (vfolder_load_storage): Updated for function name
changes in mail-component.c
* mail-offline-handler.c: Updated for function name changes in
mail-component.c
* mail-account-gui.c (add_new_store): Fixed to not use EStorage.
(mail_account_gui_save): Updated for function name changes.
* em-account-prefs.c (account_delete_clicked): Updated for
function name changes.
(account_able_clicked): Same.
(account_able_toggled): Same.
* mail-component.c: Renamed mail_component_*storage*() functions
to mail_component_*store*() since we are no longer dealing with
storages, but instead with CamelStore's.
(create_view_widget): If the user selects a store node, don't try
to open it as a folder.
svn path=/trunk/; revision=23340
Diffstat (limited to 'mail/mail-offline-handler.c')
-rw-r--r-- | mail/mail-offline-handler.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/mail/mail-offline-handler.c b/mail/mail-offline-handler.c index 5a39249765..6a44b05712 100644 --- a/mail/mail-offline-handler.c +++ b/mail/mail-offline-handler.c @@ -58,7 +58,7 @@ service_is_relevant (CamelService *service, gboolean going_offline) } static void -add_connection (gpointer key, gpointer data, gpointer user_data) +add_connection (gpointer key, gpointer value, gpointer user_data) { CamelService *service = key; GNOME_Evolution_ConnectionList *list = user_data; @@ -78,11 +78,11 @@ create_connection_list (void) list = GNOME_Evolution_ConnectionList__alloc (); list->_length = 0; - list->_maximum = mail_component_get_storage_count (mail_component_peek ()); + list->_maximum = mail_component_get_store_count (mail_component_peek ()); list->_buffer = CORBA_sequence_GNOME_Evolution_Connection_allocbuf (list->_maximum); - - mail_component_storages_foreach (mail_component_peek (), add_connection, list); - + + mail_component_stores_foreach (mail_component_peek (), add_connection, list); + return list; } @@ -234,12 +234,12 @@ went_offline (CamelStore *store, void *data) } static void -storage_go_offline (gpointer key, gpointer value, gpointer data) +store_go_offline (gpointer key, gpointer value, gpointer data) { CamelStore *store = key; GNOME_Evolution_OfflineProgressListener listener = data; CORBA_Environment ev; - + CORBA_exception_init(&ev); if (service_is_relevant (CAMEL_SERVICE (store), TRUE)) { mail_store_set_offline (store, TRUE, went_offline, CORBA_Object_duplicate(listener, &ev)); @@ -261,14 +261,14 @@ impl_goOffline (PortableServer_Servant servant, /* FIXME: If send/receive active, wait for it to finish */ - mail_component_storages_foreach (mail_component_peek (), storage_go_offline, progress_listener); + mail_component_stores_foreach (mail_component_peek (), store_go_offline, progress_listener); } static void -storage_go_online (gpointer key, gpointer value, gpointer data) +store_go_online (gpointer key, gpointer value, gpointer data) { CamelStore *store = key; - + if (service_is_relevant (CAMEL_SERVICE (store), FALSE)) { mail_store_set_offline (store, FALSE, NULL, NULL); mail_note_store (store, NULL, NULL, NULL); @@ -281,14 +281,14 @@ impl_goOnline (PortableServer_Servant servant, { MailOfflineHandler *offline_handler; MailOfflineHandlerPrivate *priv; - + offline_handler = MAIL_OFFLINE_HANDLER (bonobo_object_from_servant (servant)); priv = offline_handler->priv; - + /* Enable auto-mail-checking */ camel_session_set_online (session, TRUE); - - mail_component_storages_foreach (mail_component_peek (), storage_go_online, NULL); + + mail_component_stores_foreach (mail_component_peek (), store_go_online, NULL); } /* GObject methods. */ |