From 306b02ec8725e7b1cad21d58fbbceb63c629107b Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sun, 8 Jul 2012 15:41:22 -0400 Subject: [PATCH] camel_folder_expunge_sync(): Push a status message. --- camel/camel-folder.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/camel/camel-folder.c b/camel/camel-folder.c index aa1fa40..44fbff9 100644 --- a/camel/camel-folder.c +++ b/camel/camel-folder.c @@ -3351,6 +3351,8 @@ camel_folder_expunge_sync (CamelFolder *folder, GError **error) { CamelFolderClass *class; + const gchar *display_name; + const gchar *message; gboolean success = TRUE; g_return_val_if_fail (CAMEL_IS_FOLDER (folder), FALSE); @@ -3366,11 +3368,17 @@ camel_folder_expunge_sync (CamelFolder *folder, return FALSE; } + message = _("Expunging folder '%s'"); + display_name = camel_folder_get_display_name (folder); + camel_operation_push_message (cancellable, message, display_name); + if (!(folder->folder_flags & CAMEL_FOLDER_HAS_BEEN_DELETED)) { success = class->expunge_sync (folder, cancellable, error); CAMEL_CHECK_GERROR (folder, expunge_sync, success, error); } + camel_operation_pop_message (cancellable); + camel_folder_unlock (folder, CAMEL_FOLDER_REC_LOCK); return success; -- 2.7.4