[evolution-ews] Bug #672175 - Make CamelFolderSearch cancellable



commit f68b45ed2455bc4f01d7ba052deb6eab5edb627e
Author: Milan Crha <mcrha redhat com>
Date:   Tue Mar 27 17:18:35 2012 +0200

    Bug #672175 - Make CamelFolderSearch cancellable

 src/camel/camel-ews-folder.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/camel/camel-ews-folder.c b/src/camel/camel-ews-folder.c
index 291708a..19b109d 100644
--- a/src/camel/camel-ews-folder.c
+++ b/src/camel/camel-ews-folder.c
@@ -564,6 +564,7 @@ ews_folder_get_message_sync (CamelFolder *folder,
 static GPtrArray *
 ews_folder_search_by_expression (CamelFolder *folder,
                                  const gchar *expression,
+				 GCancellable *cancellable,
                                  GError **error)
 {
 	CamelEwsFolder *ews_folder;
@@ -576,7 +577,7 @@ ews_folder_search_by_expression (CamelFolder *folder,
 	g_mutex_lock (priv->search_lock);
 
 	camel_folder_search_set_folder (ews_folder->search, folder);
-	matches = camel_folder_search_search (ews_folder->search, expression, NULL, error);
+	matches = camel_folder_search_search (ews_folder->search, expression, NULL, cancellable, error);
 
 	g_mutex_unlock (priv->search_lock);
 
@@ -586,6 +587,7 @@ ews_folder_search_by_expression (CamelFolder *folder,
 static guint32
 ews_folder_count_by_expression (CamelFolder *folder,
                                 const gchar *expression,
+				GCancellable *cancellable,
                                 GError **error)
 {
 	CamelEwsFolder *ews_folder;
@@ -598,7 +600,7 @@ ews_folder_count_by_expression (CamelFolder *folder,
 	g_mutex_lock (priv->search_lock);
 
 	camel_folder_search_set_folder (ews_folder->search, folder);
-	matches = camel_folder_search_count (ews_folder->search, expression, error);
+	matches = camel_folder_search_count (ews_folder->search, expression, cancellable, error);
 
 	g_mutex_unlock (priv->search_lock);
 
@@ -609,6 +611,7 @@ static GPtrArray *
 ews_folder_search_by_uids (CamelFolder *folder,
                            const gchar *expression,
                            GPtrArray *uids,
+			   GCancellable *cancellable,
                            GError **error)
 {
 	CamelEwsFolder *ews_folder;
@@ -624,7 +627,7 @@ ews_folder_search_by_uids (CamelFolder *folder,
 	g_mutex_lock (priv->search_lock);
 
 	camel_folder_search_set_folder (ews_folder->search, folder);
-	matches = camel_folder_search_search (ews_folder->search, expression, uids, error);
+	matches = camel_folder_search_search (ews_folder->search, expression, uids, cancellable, error);
 
 	g_mutex_unlock (priv->search_lock);
 



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