aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-26 19:03:15 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:42:20 +0800
commit7d94ff79130ae0ce3027311c1a8c5125eebdc417 (patch)
tree12469a3d3b3264575faa220e7e92ed0cde03550a /mail
parentf38ba5f59d01b18742f94a9f386e0f52109b847d (diff)
downloadgsoc2013-evolution-7d94ff79130ae0ce3027311c1a8c5125eebdc417.tar
gsoc2013-evolution-7d94ff79130ae0ce3027311c1a8c5125eebdc417.tar.gz
gsoc2013-evolution-7d94ff79130ae0ce3027311c1a8c5125eebdc417.tar.bz2
gsoc2013-evolution-7d94ff79130ae0ce3027311c1a8c5125eebdc417.tar.lz
gsoc2013-evolution-7d94ff79130ae0ce3027311c1a8c5125eebdc417.tar.xz
gsoc2013-evolution-7d94ff79130ae0ce3027311c1a8c5125eebdc417.tar.zst
gsoc2013-evolution-7d94ff79130ae0ce3027311c1a8c5125eebdc417.zip
Bug 651062 - refresh_folders_exec() reports progress incorrectly.
Diffstat (limited to 'mail')
-rw-r--r--mail/mail-send-recv.c9
1 files changed, 6 insertions, 3 deletions
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;i<m->folders->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);
}