aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-callbacks.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2003-08-23 05:14:36 +0800
committerMichael Zucci <zucchi@src.gnome.org>2003-08-23 05:14:36 +0800
commitcbf3647544de3dc02853c1652cfdbbeb29ce93dd (patch)
tree75355fecf90a56c2cd7aeb053afccff1b98bdba6 /mail/mail-callbacks.c
parentbc43a79394e30a2d28984262ce37f74a12acec00 (diff)
downloadgsoc2013-evolution-cbf3647544de3dc02853c1652cfdbbeb29ce93dd.tar.gz
gsoc2013-evolution-cbf3647544de3dc02853c1652cfdbbeb29ce93dd.tar.zst
gsoc2013-evolution-cbf3647544de3dc02853c1652cfdbbeb29ce93dd.zip
translate the local time format.
2003-08-22 Not Zed <NotZed@Ximian.com> * mail-format.c (write_date): translate the local time format. 2003-08-20 David Woodhouse <dwmw2@infradead.org> * mail-format.c (write_date): Use e_utf8_strftime() to generate localised time; avoid gratuitous extra translation and array of day names, and the autoconf magic which made Not Zed dislike the inclusion of the timezone name. 2003-08-05 Not Zed <NotZed@Ximian.com> ** See bug #32732 * message-list.c (mail_regen_list): use thread_new. * mail-local.c (reconfigure_response): use thread_new. * mail-display.c (stream_write_or_redisplay_when_loaded): use thread_new. * mail-config.c (mail_config_check_service): use thread_new rather than queue. * mail-callbacks.c (view_msg): change to use mail_get_messages(), fixes FIXME. (do_view_messages): handle get_messages callback. (do_view_message): removed. * mail-ops.c (mail_get_folderinfo): Use a new thread thread semantic. (mail_save_part): " (mail_store_set_offline): " (mail_sync_folder): use queued_slow thread queue. (mail_expunge_folder): " (mail_empty_trash): " svn path=/trunk/; revision=22340
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r--mail/mail-callbacks.c25
1 files changed, 11 insertions, 14 deletions
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index d018febeb0..21690c55ce 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -3121,18 +3121,21 @@ configure_folder (BonoboUIComponent *uih, void *user_data, const char *path)
}
static void
-do_view_message (CamelFolder *folder, const char *uid, CamelMimeMessage *message, void *data)
+do_view_messages(CamelFolder *folder, GPtrArray *uids, GPtrArray *msgs, void *data)
{
- FolderBrowser *fb = FOLDER_BROWSER (data);
-
+ FolderBrowser *fb = data;
+ int i;
+
if (FOLDER_BROWSER_IS_DESTROYED (fb))
return;
-
- if (message && uid) {
+
+ for (i = 0; i < uids->len && i < msgs->len; i++) {
+ char *uid = uids->pdata[i];
+ CamelMimeMessage *msg = msgs->pdata[i];
GtkWidget *mb;
- camel_folder_set_message_flags (folder, uid, CAMEL_MESSAGE_SEEN, CAMEL_MESSAGE_SEEN);
- mb = message_browser_new (fb->shell, fb->uri, uid);
+ camel_folder_set_message_flags(folder, uid, CAMEL_MESSAGE_SEEN, CAMEL_MESSAGE_SEEN);
+ mb = message_browser_new(fb->shell, fb->uri, uid);
gtk_widget_show (mb);
}
}
@@ -3142,7 +3145,6 @@ view_msg (GtkWidget *widget, gpointer user_data)
{
FolderBrowser *fb = FOLDER_BROWSER (user_data);
GPtrArray *uids;
- int i;
if (FOLDER_BROWSER_IS_DESTROYED (fb))
return;
@@ -3153,12 +3155,7 @@ view_msg (GtkWidget *widget, gpointer user_data)
if (uids->len > 10 && !are_you_sure (_("Are you sure you want to open all %d messages in separate windows?"), uids, fb))
return;
- /* FIXME: use mail_get_messages() */
- for (i = 0; i < uids->len; i++) {
- mail_get_message (fb->folder, uids->pdata [i], do_view_message, fb, mail_thread_queued);
- g_free (uids->pdata [i]);
- }
- g_ptr_array_free (uids, TRUE);
+ mail_get_messages(fb->folder, uids, do_view_messages, fb);
}
void