[evolution-data-server] camel_folder_expunge_sync(): Push a status message.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] camel_folder_expunge_sync(): Push a status message.
- Date: Sun, 8 Jul 2012 19:58:07 +0000 (UTC)
commit 306b02ec8725e7b1cad21d58fbbceb63c629107b
Author: Matthew Barnes <mbarnes redhat com>
Date: Sun Jul 8 15:41:22 2012 -0400
camel_folder_expunge_sync(): Push a status message.
camel/camel-folder.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]