aboutsummaryrefslogtreecommitdiffstats
path: root/mail/importers
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-08-10 19:46:31 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-09-14 20:08:48 +0800
commit24fecae4009c77ffbe2dc60ed737953d81fe0c81 (patch)
tree8cf15f6bb465d3b4d8045b56591749f9d7a8e847 /mail/importers
parent40369c6b3452634b45c0e7efff6932ca83f13378 (diff)
downloadgsoc2013-evolution-24fecae4009c77ffbe2dc60ed737953d81fe0c81.tar.gz
gsoc2013-evolution-24fecae4009c77ffbe2dc60ed737953d81fe0c81.tar.zst
gsoc2013-evolution-24fecae4009c77ffbe2dc60ed737953d81fe0c81.zip
Bug #655944 - Import dialog is not showing operation progress
Diffstat (limited to 'mail/importers')
-rw-r--r--mail/importers/mail-importer.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mail/importers/mail-importer.c b/mail/importers/mail-importer.c
index 9f98779938..c2619e08a1 100644
--- a/mail/importers/mail-importer.c
+++ b/mail/importers/mail-importer.c
@@ -150,7 +150,7 @@ import_mbox_exec (struct _import_mbox_msg *m,
}
camel_operation_push_message (
- cancellable, _("Importing '%s'"),
+ m->cancellable, _("Importing '%s'"),
camel_folder_get_full_name (folder));
camel_folder_freeze (folder);
while (camel_mime_parser_step (mp, NULL, NULL) ==
@@ -165,7 +165,7 @@ import_mbox_exec (struct _import_mbox_msg *m,
pc = (gint) (100.0 * ((gdouble)
camel_mime_parser_tell (mp) /
(gdouble) st.st_size));
- camel_operation_progress (cancellable, pc);
+ camel_operation_progress (m->cancellable, pc);
msg = camel_mime_message_new ();
if (!camel_mime_part_construct_from_parser_sync (
@@ -202,7 +202,7 @@ import_mbox_exec (struct _import_mbox_msg *m,
/* FIXME Not passing a GCancellable or GError here. */
camel_folder_synchronize_sync (folder, FALSE, NULL, NULL);
camel_folder_thaw (folder);
- camel_operation_pop_message (cancellable);
+ camel_operation_pop_message (m->cancellable);
fail2:
g_object_unref (mp);
}
@@ -312,7 +312,7 @@ import_folders_rec (struct _import_folders_data *m,
data_dir = mail_session_get_data_dir ();
utf8_filename = g_filename_to_utf8 (filepath, -1, NULL, NULL, NULL);
- camel_operation_push_message (NULL, _("Scanning %s"), utf8_filename);
+ camel_operation_push_message (m->cancellable, _("Scanning %s"), utf8_filename);
g_free (utf8_filename);
while ( (d=g_dir_read_name (dir))) {
@@ -378,7 +378,7 @@ import_folders_rec (struct _import_folders_data *m,
}
g_dir_close (dir);
- camel_operation_pop_message (NULL);
+ camel_operation_pop_message (m->cancellable);
}
/**