diff options
author | Jeffrey Stedfast <fejj@helixcode.com> | 2000-08-10 03:49:20 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2000-08-10 03:49:20 +0800 |
commit | c8712d81153e82aaa5ded7bb2e004be5621dc871 (patch) | |
tree | 752a796ca4f2c15b569d08ee0fa3f521550f7bdd /mail/mail-ops.c | |
parent | 304e8a1ba0f0ed96c18889a4cc2a430bb7efd22e (diff) | |
download | gsoc2013-evolution-c8712d81153e82aaa5ded7bb2e004be5621dc871.tar gsoc2013-evolution-c8712d81153e82aaa5ded7bb2e004be5621dc871.tar.gz gsoc2013-evolution-c8712d81153e82aaa5ded7bb2e004be5621dc871.tar.bz2 gsoc2013-evolution-c8712d81153e82aaa5ded7bb2e004be5621dc871.tar.lz gsoc2013-evolution-c8712d81153e82aaa5ded7bb2e004be5621dc871.tar.xz gsoc2013-evolution-c8712d81153e82aaa5ded7bb2e004be5621dc871.tar.zst gsoc2013-evolution-c8712d81153e82aaa5ded7bb2e004be5621dc871.zip |
Create a new FolderBrowser for each message being opened in a new window.
2000-08-09 Jeffrey Stedfast <fejj@helixcode.com>
* 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.
svn path=/trunk/; revision=4660
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r-- | mail/mail-ops.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c index c8357a0a3a..7afd630899 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -1088,6 +1088,7 @@ static void real_view_msg (MessageList *ml, const char *uid, gpointer user_data) { struct view_msg_data *data = user_data; + FolderBrowser *fb; CamelMimeMessage *msg; GtkWidget *view; @@ -1095,9 +1096,14 @@ real_view_msg (MessageList *ml, const char *uid, gpointer user_data) return; msg = camel_folder_get_message (ml->folder, uid, data->ex); - - data->fb->message_list->cursor_uid = uid; - view = mail_view_create (msg, data->fb); + + fb = FOLDER_BROWSER (folder_browser_new ()); + folder_browser_set_uri (fb, data->fb->uri); + + fb->message_list->cursor_uid = uid; + fb->mail_display->current_message = msg; + + view = mail_view_create (msg, fb); gtk_widget_show (view); } @@ -1113,10 +1119,7 @@ view_msg (GtkWidget *widget, gpointer user_data) camel_exception_init (&ex); - folder_browser = FOLDER_BROWSER (folder_browser_new ()); - folder_browser_set_uri (folder_browser, fb->uri); - - data.fb = folder_browser; + data.fb = fb; data.ex = &ex; ml = fb->message_list; |