[evolution-data-server] camel_store_get_folder_info_sync(): Add a status message.



commit f769140532b620f7dcc2506c13588f75f0b77444
Author: Matthew Barnes <mbarnes redhat com>
Date:   Wed May 11 21:46:46 2011 -0400

    camel_store_get_folder_info_sync(): Add a status message.

 camel/camel-store.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/camel/camel-store.c b/camel/camel-store.c
index 8a51d96..b80d3dd 100644
--- a/camel/camel-store.c
+++ b/camel/camel-store.c
@@ -2268,12 +2268,18 @@ camel_store_get_folder_info_sync (CamelStore *store,
 {
 	CamelStoreClass *class;
 	CamelFolderInfo *info;
+	gchar *name;
 
 	g_return_val_if_fail (CAMEL_IS_STORE (store), NULL);
 
 	class = CAMEL_STORE_GET_CLASS (store);
 	g_return_val_if_fail (class->get_folder_info_sync != NULL, NULL);
 
+	name = camel_service_get_name (CAMEL_SERVICE (store), TRUE);
+	camel_operation_push_message (
+		cancellable, _("Scanning folders in '%s'"), name);
+	g_free (name);
+
 	info = class->get_folder_info_sync (
 		store, top, flags, cancellable, error);
 	if (!(flags & CAMEL_STORE_FOLDER_INFO_SUBSCRIBED))
@@ -2310,6 +2316,8 @@ camel_store_get_folder_info_sync (CamelStore *store,
 		}
 	}
 
+	camel_operation_pop_message (cancellable);
+
 	if (camel_debug_start("store:folder_info")) {
 		CamelURL *curl;
 		gchar *url;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]