[evolution-data-server] Bug 704885 - "Unknown background operation" when syncing spamassassin
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Bug 704885 - "Unknown background operation" when syncing spamassassin
- Date: Fri, 2 Aug 2013 19:13:16 +0000 (UTC)
commit 2a50d822fe0f1cdea625606941eba65bbe004bf2
Author: Matthew Barnes <mbarnes redhat com>
Date: Fri Aug 2 21:09:41 2013 +0200
Bug 704885 - "Unknown background operation" when syncing spamassassin
The "spamassassin" Evolution module makes use of CamelJunkFilter's
synchronize() method, during which time we didn't have a status message
pushed on the CamelOperation (other than the default "Unknown background
operation", which users should never see). This commit pushes a message.
camel/camel-junk-filter.c | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/camel/camel-junk-filter.c b/camel/camel-junk-filter.c
index e23015d..2b6b2b0 100644
--- a/camel/camel-junk-filter.c
+++ b/camel/camel-junk-filter.c
@@ -18,6 +18,11 @@
#include "camel-junk-filter.h"
+#include <config.h>
+#include <glib/gi18n-lib.h>
+
+#include "camel-operation.h"
+
G_DEFINE_INTERFACE (CamelJunkFilter, camel_junk_filter, G_TYPE_OBJECT)
static void
@@ -158,10 +163,16 @@ camel_junk_filter_synchronize (CamelJunkFilter *junk_filter,
/* This method is optional. */
interface = CAMEL_JUNK_FILTER_GET_INTERFACE (junk_filter);
- if (interface->synchronize != NULL)
+ if (interface->synchronize != NULL) {
+ camel_operation_push_message (
+ cancellable, _("Synchronizing junk database"));
+
success = interface->synchronize (
junk_filter, cancellable, error);
+ camel_operation_pop_message (cancellable);
+ }
+
return success;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]