diff options
author | Not Zed <NotZed@Ximian.com> | 2001-02-22 04:13:07 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2001-02-22 04:13:07 +0800 |
commit | 3d924d9972c35c96d57c6e503f21f26a2cc6e95d (patch) | |
tree | c977751da2680be7240d19c44f1c9c754a1859ae /mail/mail-local.c | |
parent | 535fea211a9a35f5b04017124a71764daf926723 (diff) | |
download | gsoc2013-evolution-3d924d9972c35c96d57c6e503f21f26a2cc6e95d.tar.gz gsoc2013-evolution-3d924d9972c35c96d57c6e503f21f26a2cc6e95d.tar.zst gsoc2013-evolution-3d924d9972c35c96d57c6e503f21f26a2cc6e95d.zip |
started hack for progress reporting, which is currently to the console.
2001-02-22 Not Zed <NotZed@Ximian.com>
* mail-local.c (local_storage_new_folder_cb): started hack for
progress reporting, which is currently to the console.
* mail-mt.c (set_stop): Set the stop button sensitivity.
(mail_msg_received): enable/disable stop button while we're
processing stuff in another thread.
* message-list.c (ml_tree_value_at): If our uid entry vanishes
before w'ere ready, then make a fake.
svn path=/trunk/; revision=8338
Diffstat (limited to 'mail/mail-local.c')
-rw-r--r-- | mail/mail-local.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mail/mail-local.c b/mail/mail-local.c index 087d8d94bb..eba6f36992 100644 --- a/mail/mail-local.c +++ b/mail/mail-local.c @@ -460,11 +460,14 @@ register_folder_register(struct _mail_msg *mm) meta = load_metainfo (name); g_free (name); + camel_operation_register(mm->cancel); + name = g_strdup_printf ("%s:%s", meta->format, path); store = camel_session_get_store (session, name, &mm->ex); g_free (name); if (!store) { free_metainfo (meta); + camel_operation_unregister(mm->cancel); return; } @@ -484,6 +487,8 @@ register_folder_register(struct _mail_msg *mm) camel_object_unref (CAMEL_OBJECT (store)); free_metainfo (meta); + + camel_operation_register(mm->cancel); } static void @@ -519,6 +524,11 @@ static struct _mail_msg_op register_folder_op = { register_folder_free, }; +static void new_status(struct _CamelOperation *op, const char *what, int pc, void *data) +{ + printf("oepration %s %d %% complete\n", what, pc); +} + static void local_storage_new_folder_cb (EvolutionStorageListener *storage_listener, const char *path, @@ -547,6 +557,10 @@ local_storage_new_folder_cb (EvolutionStorageListener *storage_listener, m->local_folder = local_folder; + /* HACK: so we reuse the cancel pointer */ + camel_operation_unref(m->msg.cancel); + m->msg.cancel = camel_operation_new(new_status, m); + /* run synchronous, the shell expects it (I think) */ id = m->msg.seq; e_thread_put(mail_thread_queued, (EMsg *)m); |