diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-04-04 06:55:34 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-04-04 06:55:34 +0800 |
commit | 2e55f851fb04637dac674bd0d9deb2a071026ba5 (patch) | |
tree | 09e64db0152751cc455445b804ea1f855610fca7 /mail/mail-callbacks.c | |
parent | 6447ad075851a3f6bc07c3441d4fff44d0bf4cb6 (diff) | |
download | gsoc2013-evolution-2e55f851fb04637dac674bd0d9deb2a071026ba5.tar.gz gsoc2013-evolution-2e55f851fb04637dac674bd0d9deb2a071026ba5.tar.zst gsoc2013-evolution-2e55f851fb04637dac674bd0d9deb2a071026ba5.zip |
Set the window title/icon here instead.
2002-04-03 Jeffrey Stedfast <fejj@ximian.com>
* message-tag-followup.c (construct): Set the window title/icon
here instead.
* message-tag-editor.c (message_tag_editor_init): Don't set the
title or window icon here, this is a generic class.
* mail-format.c (handle_multipart_signed): Replace
get_url_for_icon with the new mail_display_get_url_for_icon
function.
(handle_multipart_digest): Here too.
(get_cid): Use mail_display_add_url instead.
(get_location): Same.
(handle_text_enriched): Here too.
(handle_multipart_signed): And here.
* message-tag-followup.c (message_tag_followup_i18n_name): Use the
U_() macro, not the _() macro as it is what we really want.
* mail-ops.c (mail_send_message): Don't cast the message into a
CamelMedium before sending anymore.
* mail-callbacks.c (expunge_folder): Set the followup argument to
NULL here.
(done_message_selected): Get the followup value here and pass it
to the mail-display here.
(do_mail_fetch_and_print): Again with the NULL followup here.
* folder-browser.c (folder_browser_set_message_preview): Update to
pass in NULL as the followup since we are setting the message to
NULL here.
(done_message_selected): Get and set the appropriate followup
value here.
(do_message_selected): Update to pass in NULL as the followup
since we are setting the message to NULL here.
* mail-display.c (mail_display_set_message): Now takes a followup
tag value.
(mail_display_init): Set md->followup to NULL.
(mail_display_destroy): Free md->followup.
(mail_display_add_url): New: replaces the static add_url function
originally in mail-format.c
(mail_display_get_url_for_icon): New: replaces get_url_for_icon
which was originally in mail-format.c
svn path=/trunk/; revision=16334
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r-- | mail/mail-callbacks.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index 988f8b58f8..2f4f6b695a 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -2649,7 +2649,7 @@ expunge_folder (BonoboUIComponent *uih, void *user_data, const char *path) info = camel_folder_get_message_info (fb->folder, fb->loaded_uid); if (!info || info->flags & CAMEL_MESSAGE_DELETED) - mail_display_set_message (fb->mail_display, NULL); + mail_display_set_message (fb->mail_display, NULL, NULL); } fb->expunging = fb->folder; @@ -2906,11 +2906,14 @@ done_message_selected (CamelFolder *folder, char *uid, CamelMimeMessage *msg, vo struct blarg_this_sucks *blarg = data; FolderBrowser *fb = blarg->fb; gboolean preview = blarg->preview; + const char *followup; g_free (blarg); - - mail_display_set_message (fb->mail_display, (CamelMedium *)msg); - + + followup = camel_folder_get_message_user_tag (folder, uid, "follow-up"); + + mail_display_set_message (fb->mail_display, (CamelMedium *) msg, followup); + g_free (fb->loaded_uid); fb->loaded_uid = fb->loading_uid; fb->loading_uid = NULL; @@ -2941,7 +2944,7 @@ do_mail_fetch_and_print (FolderBrowser *fb, gboolean preview) fb->loading_uid = g_strdup (fb->new_uid); mail_get_message (fb->folder, fb->loading_uid, done_message_selected, blarg, mail_thread_new); } else { - mail_display_set_message (fb->mail_display, NULL); + mail_display_set_message (fb->mail_display, NULL, NULL); g_free (blarg); } } |