[evolution] Bug #651062 - Emit operation progress on the correct cancellable



commit 420ac55791b7b481b5b734cf0d5ca709bd829117
Author: Milan Crha <mcrha redhat com>
Date:   Mon May 30 08:43:41 2011 +0200

    Bug #651062 - Emit operation progress on the correct cancellable

 mail/mail-send-recv.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c
index eb661cc..61eb302 100644
--- a/mail/mail-send-recv.c
+++ b/mail/mail-send-recv.c
@@ -960,7 +960,7 @@ refresh_folders_exec (struct _refresh_folders_msg *m,
 
 	get_folders (m->store, m->folders, m->finfo);
 
-	camel_operation_push_message (cancellable, _("Updating..."));
+	camel_operation_push_message (m->info->cancellable, _("Updating..."));
 
 	for (i=0;i<m->folders->len;i++) {
 		folder = e_mail_session_uri_to_folder_sync (
@@ -983,10 +983,10 @@ refresh_folders_exec (struct _refresh_folders_msg *m,
 
 		if (m->info->state != SEND_CANCELLED)
 			camel_operation_progress (
-				cancellable, 100 * i / m->folders->len);
+				m->info->cancellable, 100 * i / m->folders->len);
 	}
 
-	camel_operation_pop_message (cancellable);
+	camel_operation_pop_message (m->info->cancellable);
 
 	if (cancellable)
 		g_signal_handler_disconnect (m->info->cancellable, handler_id);



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