aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-callbacks.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-04-24 05:16:00 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-04-24 05:16:00 +0800
commit373b8669f5e8b377ba0d17d938641e8650551abb (patch)
treed63d1ce1faa9fc617c84058fa6ad704580eaf7fc /mail/mail-callbacks.c
parent23faa57aef230148a5ab1c746a325be4ba029b02 (diff)
downloadgsoc2013-evolution-373b8669f5e8b377ba0d17d938641e8650551abb.tar.gz
gsoc2013-evolution-373b8669f5e8b377ba0d17d938641e8650551abb.tar.zst
gsoc2013-evolution-373b8669f5e8b377ba0d17d938641e8650551abb.zip
Use the message-browser widget rather than the mail-view window.
2001-04-23 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (do_view_message): Use the message-browser widget rather than the mail-view window. * mail-view.c: Removed. * folder-browser.c: Added a folder_loaded signal. * message-browser.[c,h]: New window to solve all our message browsing needs. This replaces mail-view.c. * message-list.c (message_list_select_uid): New function needed by the new message-browser window. svn path=/trunk/; revision=9525
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r--mail/mail-callbacks.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index 46a38030fa..083c3e89ff 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -42,6 +42,7 @@
#include <gal/widgets/e-gui-utils.h>
#include <filter/filter-editor.h>
#include "mail.h"
+#include "message-browser.h"
#include "mail-callbacks.h"
#include "mail-config.h"
#include "mail-accounts.h"
@@ -1522,15 +1523,16 @@ configure_folder (BonoboUIComponent *uih, void *user_data, const char *path)
}
static void
-do_view_message(CamelFolder *folder, char *uid, CamelMimeMessage *message, void *data)
+do_view_message (CamelFolder *folder, char *uid, CamelMimeMessage *message, void *data)
{
- /*FolderBrowser *fb = data;*/
- GtkWidget *view;
+ FolderBrowser *fb = FOLDER_BROWSER (data);
- if (message) {
+ if (message && fb) {
+ GtkWidget *mb;
+
camel_folder_set_message_flags (folder, uid, CAMEL_MESSAGE_SEEN, CAMEL_MESSAGE_SEEN);
- view = mail_view_create(folder, uid, message);
- gtk_widget_show(view);
+ mb = message_browser_new (fb->shell, fb->uri, uid);
+ gtk_widget_show (mb);
}
}