diff options
author | Not Zed <NotZed@Ximian.com> | 2001-02-02 11:06:04 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2001-02-02 11:06:04 +0800 |
commit | c051d7fa5200dd51fe23422ce2a5b87c8bba14f0 (patch) | |
tree | 1ab5271945ef6553f716a76afd7968eaf2963851 /mail/mail-send-recv.c | |
parent | ebd3b725015d95ecd6812589052370e1b88f4f22 (diff) | |
download | gsoc2013-evolution-c051d7fa5200dd51fe23422ce2a5b87c8bba14f0.tar gsoc2013-evolution-c051d7fa5200dd51fe23422ce2a5b87c8bba14f0.tar.gz gsoc2013-evolution-c051d7fa5200dd51fe23422ce2a5b87c8bba14f0.tar.bz2 gsoc2013-evolution-c051d7fa5200dd51fe23422ce2a5b87c8bba14f0.tar.lz gsoc2013-evolution-c051d7fa5200dd51fe23422ce2a5b87c8bba14f0.tar.xz gsoc2013-evolution-c051d7fa5200dd51fe23422ce2a5b87c8bba14f0.tar.zst gsoc2013-evolution-c051d7fa5200dd51fe23422ce2a5b87c8bba14f0.zip |
Cleaned up so we dont add an unecessary level of indenting.
2001-02-02 Not Zed <NotZed@Ximian.com>
* mail-send-recv.c (mail_send_receive): Cleaned up so we dont add
an unecessary level of indenting.
* message-list.c (ml_tree_value_at): For collapsed tree nodes,
scan the collapses nodes for the unread and status information.
Since we dont really have fake nodes anymore.
2001-01-30 Ian Campbell <ijc25@cam.ac.uk>
* message-list.c: Add support for new icons for being
read/unread for fake root messages on threads.
svn path=/trunk/; revision=7942
Diffstat (limited to 'mail/mail-send-recv.c')
-rw-r--r-- | mail/mail-send-recv.c | 101 |
1 files changed, 50 insertions, 51 deletions
diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c index aec94a7ba5..87b5cebedf 100644 --- a/mail/mail-send-recv.c +++ b/mail/mail-send-recv.c @@ -186,8 +186,7 @@ static struct _send_data *build_dialogue(GSList *sources, CamelFolder *outbox, c gd = (GnomeDialog *)gnome_dialog_new(_("Send & Receive mail"), GNOME_STOCK_BUTTON_OK, GNOME_STOCK_BUTTON_CANCEL, NULL); gnome_dialog_set_sensitive(gd, 0, FALSE); - gnome_window_icon_set_from_file (GTK_WINDOW (gd), - EVOLUTION_DATADIR "images/evolution/evolution-inbox.png"); + gnome_window_icon_set_from_file((GtkWindow *)gd, EVOLUTION_DATADIR "images/evolution/evolution-inbox.png"); frame= (GtkFrame *)gtk_frame_new(_("Receiving")); gtk_box_pack_start((GtkBox *)gd->vbox, (GtkWidget *)frame, TRUE, TRUE, 0); @@ -501,58 +500,58 @@ void mail_send_receive(void) const MailConfigAccount *account; if (gd != NULL) { - g_assert (GTK_WIDGET_REALIZED (gd)); - gdk_window_show (gd->window); - gdk_window_raise (gd->window); - } else { - sources = mail_config_get_sources(); - if (!sources) - return; - account = mail_config_get_default_account(); - if (!account || !account->transport) - return; + g_assert(GTK_WIDGET_REALIZED(gd)); + gdk_window_show(gd->window); + gdk_window_raise(gd->window); + return; + } + + sources = mail_config_get_sources(); + if (!sources) + return; + account = mail_config_get_default_account(); + if (!account || !account->transport) + return; + + fc = mail_load_filter_context(); - fc = mail_load_filter_context(); + /* what to do about pop before smtp ? + Well, probably hook into receive_done or receive_status on + the right pop account, and when it is, then kick off the + smtp one. */ + data = build_dialogue(sources, outbox_folder, account->transport->url); + scan = data->infos; + gd = data->gd; + gtk_signal_connect((GtkObject *)gd, "destroy", gtk_widget_destroyed, &gd); + while (scan) { + struct _send_info *info = scan->data; - /* what to do about pop before smtp ? - Well, probably hook into receive_done or receive_status on - the right pop account, and when it is, then kick off the - smtp one. */ - data = build_dialogue(sources, outbox_folder, account->transport->url); - scan = data->infos; - gd = data->gd; - gtk_signal_connect (GTK_OBJECT (gd), "destroy", - GTK_SIGNAL_FUNC (gtk_widget_destroyed), &gd); - while (scan) { - struct _send_info *info = scan->data; - - switch(info->type) { - case SEND_RECEIVE: - mail_fetch_mail(info->uri, info->keep, - fc, FILTER_SOURCE_INCOMING, - info->cancel, - receive_get_folder, info, - receive_status, info, - receive_done, info); - break; - case SEND_SEND: - /* todo, store the folder in info? */ - mail_send_queue(outbox_folder, info->uri, - fc, FILTER_SOURCE_OUTGOING, - info->cancel, - receive_get_folder, info, - receive_status, info, - receive_done, info); - break; - case SEND_UPDATE: - /* FIXME: error reporting? */ - mail_get_store(info->uri, receive_update_got_store, info); - break; - } - scan = scan->next; + switch(info->type) { + case SEND_RECEIVE: + mail_fetch_mail(info->uri, info->keep, + fc, FILTER_SOURCE_INCOMING, + info->cancel, + receive_get_folder, info, + receive_status, info, + receive_done, info); + break; + case SEND_SEND: + /* todo, store the folder in info? */ + mail_send_queue(outbox_folder, info->uri, + fc, FILTER_SOURCE_OUTGOING, + info->cancel, + receive_get_folder, info, + receive_status, info, + receive_done, info); + break; + case SEND_UPDATE: + /* FIXME: error reporting? */ + mail_get_store(info->uri, receive_update_got_store, info); + break; } - - gtk_object_unref((GtkObject *)fc); + scan = scan->next; } + + gtk_object_unref((GtkObject *)fc); } |