diff options
author | Not Zed <NotZed@Ximian.com> | 2001-07-19 21:31:22 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2001-07-19 21:31:22 +0800 |
commit | 37695c74b75a1b27597e76b30eb367922279ed06 (patch) | |
tree | 05e1bb2bddc9c98fc33826c0444e13741e84fa18 /mail/mail-ops.c | |
parent | 6ddd6751337007d0ca8c17cc51fda7e2e91f5c3c (diff) | |
download | gsoc2013-evolution-37695c74b75a1b27597e76b30eb367922279ed06.tar gsoc2013-evolution-37695c74b75a1b27597e76b30eb367922279ed06.tar.gz gsoc2013-evolution-37695c74b75a1b27597e76b30eb367922279ed06.tar.bz2 gsoc2013-evolution-37695c74b75a1b27597e76b30eb367922279ed06.tar.lz gsoc2013-evolution-37695c74b75a1b27597e76b30eb367922279ed06.tar.xz gsoc2013-evolution-37695c74b75a1b27597e76b30eb367922279ed06.tar.zst gsoc2013-evolution-37695c74b75a1b27597e76b30eb367922279ed06.zip |
remvoed register/start/end etc code.
2001-07-19 Not Zed <NotZed@Ximian.com>
* mail-local.c (reconfigure_folder_reconfigure): remvoed
register/start/end etc code.
* mail-ops.c (get_messages_desc): Add the count here.
(get_messages_get): Remove the register/start code, its handled
above us.
(save_messages_desc): Added count.
(save_messages_save): Removed register/start/end code.
* mail-mt.c (mail_msg_received, mail_msg_destroy): Changed to use
camel_operation rather than mail_status.
(mail_msgport_received, mail_msgport_replied): Turn of the
mail_status stuff, we dont need to report on stuff running in the
gui thread right?
(retrieve_shell_view_interface_from_control, set_view_data,
mail_statusf, mail_status, mail_status_end, mail_status_start,
status_timeout, do_del_status, set_status_op): removed now
redundant stuff.
(mail_msg_free): Removed reference to timeout_id.
svn path=/trunk/; revision=11225
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r-- | mail/mail-ops.c | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c index 0dc4cec42b..e296dec074 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -1705,7 +1705,9 @@ struct _get_messages_msg { static char * get_messages_desc(struct _mail_msg *mm, int done) { - return g_strdup_printf(_("Retrieving messages")); + struct _get_messages_msg *m = (struct _get_messages_msg *)mm; + + return g_strdup_printf(_("Retrieving %d message(s)"), m->uids->len); } static void get_messages_get(struct _mail_msg *mm) @@ -1714,8 +1716,6 @@ static void get_messages_get(struct _mail_msg *mm) int i; CamelMimeMessage *message; - camel_operation_register(mm->cancel); - camel_operation_start(mm->cancel, _("Retrieving %d messsage(s)"), m->uids->len); for (i=0; i<m->uids->len; i++) { int pc = ((i+1) * 100) / m->uids->len; @@ -1726,9 +1726,6 @@ static void get_messages_get(struct _mail_msg *mm) g_ptr_array_add(m->messages, message); } - - camel_operation_end(mm->cancel); - camel_operation_unregister(mm->cancel); } static void get_messages_got(struct _mail_msg *mm) @@ -1794,7 +1791,9 @@ struct _save_messages_msg { static char *save_messages_desc(struct _mail_msg *mm, int done) { - return g_strdup(_("Saving messages")); + struct _save_messages_msg *m = (struct _save_messages_msg *)mm; + + return g_strdup_printf(_("Saving %d messsage(s)"), m->uids->len); } /* tries to build a From line, based on message headers */ @@ -1883,9 +1882,6 @@ static void save_messages_save(struct _mail_msg *mm) camel_stream_filter_add(filtered_stream, (CamelMimeFilter *)from_filter); camel_object_unref((CamelObject *)from_filter); - camel_operation_register(mm->cancel); - camel_operation_start(mm->cancel, _("Saving %d messsage(s)"), m->uids->len); - for (i=0; i<m->uids->len; i++) { CamelMimeMessage *message; int pc = ((i+1) * 100) / m->uids->len; @@ -1913,9 +1909,6 @@ static void save_messages_save(struct _mail_msg *mm) camel_object_unref((CamelObject *)filtered_stream); camel_object_unref((CamelObject *)stream); - - camel_operation_end(mm->cancel); - camel_operation_unregister(mm->cancel); } static void save_messages_saved(struct _mail_msg *mm) |