From 6ddc2340d03b6fe3745e97ca10336408833c7294 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 26 May 2011 07:03:15 -0400 Subject: Bug 651062 - refresh_folders_exec() reports progress incorrectly. --- mail/mail-send-recv.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'mail/mail-send-recv.c') diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c index dc3c9ed7ee..eb661cc614 100644 --- a/mail/mail-send-recv.c +++ b/mail/mail-send-recv.c @@ -960,6 +960,8 @@ refresh_folders_exec (struct _refresh_folders_msg *m, get_folders (m->store, m->folders, m->finfo); + camel_operation_push_message (cancellable, _("Updating...")); + for (i=0;ifolders->len;i++) { folder = e_mail_session_uri_to_folder_sync ( m->info->session, @@ -980,11 +982,12 @@ refresh_folders_exec (struct _refresh_folders_msg *m, break; if (m->info->state != SEND_CANCELLED) - g_signal_emit_by_name ( - m->info->cancellable, "status", - _("Updating..."), 100 * i / m->folders->len); + camel_operation_progress ( + cancellable, 100 * i / m->folders->len); } + camel_operation_pop_message (cancellable); + if (cancellable) g_signal_handler_disconnect (m->info->cancellable, handler_id); } -- cgit