aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-view.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-08-10 03:57:28 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-08-10 03:57:28 +0800
commit3d94ea9337a10ffba0475997a76b9989f29f6483 (patch)
tree65dd7a425e57e6e7abbec24c3ad6fa964cf6e5f1 /mail/mail-view.c
parentd2ef306a999add09fec5bea2298955c4b75df607 (diff)
downloadgsoc2013-evolution-3d94ea9337a10ffba0475997a76b9989f29f6483.tar
gsoc2013-evolution-3d94ea9337a10ffba0475997a76b9989f29f6483.tar.gz
gsoc2013-evolution-3d94ea9337a10ffba0475997a76b9989f29f6483.tar.bz2
gsoc2013-evolution-3d94ea9337a10ffba0475997a76b9989f29f6483.tar.lz
gsoc2013-evolution-3d94ea9337a10ffba0475997a76b9989f29f6483.tar.xz
gsoc2013-evolution-3d94ea9337a10ffba0475997a76b9989f29f6483.tar.zst
gsoc2013-evolution-3d94ea9337a10ffba0475997a76b9989f29f6483.zip
Changed to only take a FolderBrowser argument
2000-08-09 Jeffrey Stedfast <fejj@helixcode.com> * mail-view.c (mail_view_create): Changed to only take a FolderBrowser argument * mail-ops.c (real_view_msg): Create a new FolderBrowser for each message being opened in a new window. Also set the message_list->cursor_uid and mail_display->current_message to the appropriate values. (real_view_msg): Updated to reflect changes in the mail_view_create * message-list.c (on_right_click): Nicify a little, add in a menu separator between VFolder and Filter stuff. * mail-ops.c (real_view_msg): Set the UID of the message that is being displayed svn path=/trunk/; revision=4662
Diffstat (limited to 'mail/mail-view.c')
-rw-r--r--mail/mail-view.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/mail/mail-view.c b/mail/mail-view.c
index b86284e250..54861f7649 100644
--- a/mail/mail-view.c
+++ b/mail/mail-view.c
@@ -82,13 +82,16 @@ static GnomeUIInfo mail_view_menubar[] =
};
GtkWidget *
-mail_view_create (CamelMimeMessage *msg, FolderBrowser *folder_browser)
+mail_view_create (FolderBrowser *folder_browser)
{
+ CamelMimeMessage *msg;
GtkWidget *window;
GtkWidget *toolbar;
GtkWidget *mail_display;
char *subject;
+ msg = folder_browser->mail_display->current_message;
+
subject = (char *) camel_mime_message_get_subject (msg);
if (!subject)
subject = "";
@@ -120,8 +123,7 @@ mail_view_create (CamelMimeMessage *msg, FolderBrowser *folder_browser)
mail_view_menubar[1].widget,
(GtkDestroyNotify) gtk_widget_unref);
- mail_display = mail_display_new (folder_browser);
- mail_display_set_message (MAIL_DISPLAY (mail_display), CAMEL_MEDIUM (msg));
+ mail_display = folder_browser->mail_display;
gtk_widget_set_usize (mail_display, 600, 600);
gnome_app_set_contents (GNOME_APP (window), mail_display);