diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-08-01 11:54:13 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-08-01 11:54:13 +0800 |
commit | 70c9d1ce6afba17ffc1ae583ef40656959967b22 (patch) | |
tree | 93ab4fac38e432ad5204fcfc2fa4a59c85d25825 /mail/mail-callbacks.c | |
parent | 99c51c5a8cc66694ca5f65f27ae8d1fc7b067c29 (diff) | |
download | gsoc2013-evolution-70c9d1ce6afba17ffc1ae583ef40656959967b22.tar gsoc2013-evolution-70c9d1ce6afba17ffc1ae583ef40656959967b22.tar.gz gsoc2013-evolution-70c9d1ce6afba17ffc1ae583ef40656959967b22.tar.bz2 gsoc2013-evolution-70c9d1ce6afba17ffc1ae583ef40656959967b22.tar.lz gsoc2013-evolution-70c9d1ce6afba17ffc1ae583ef40656959967b22.tar.xz gsoc2013-evolution-70c9d1ce6afba17ffc1ae583ef40656959967b22.tar.zst gsoc2013-evolution-70c9d1ce6afba17ffc1ae583ef40656959967b22.zip |
Removed folder-browser-window from the build.
2002-07-31 Jeffrey Stedfast <fejj@ximian.com>
* Makefile.am: Removed folder-browser-window from the build.
* folder-browser-window.[c,h]: Removed.
* mail-callbacks.c (view_digest): Removed.
* mail-display.c (mail_display_digest_clicked): Removed.
(on_link_clicked): Don't handle digest: urls anymore.
svn path=/trunk/; revision=17666
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r-- | mail/mail-callbacks.c | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index 86f84ea739..ef3660fa43 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -46,7 +46,6 @@ #include <gtkhtml/gtkhtml.h> #include "mail.h" -#include "folder-browser-window.h" #include "message-browser.h" #include "mail-callbacks.h" #include "mail-config.h" @@ -3143,65 +3142,6 @@ configure_folder (BonoboUIComponent *uih, void *user_data, const char *path) } static void -do_view_digest (CamelFolder *folder, const char *uid, CamelMimeMessage *message, void *data) -{ - FolderBrowser *folder_browser = FOLDER_BROWSER (data); - - if (FOLDER_BROWSER_IS_DESTROYED (folder_browser)) - return; - - if (message) { - CamelFolder *digest; - CamelStore *store; - FolderBrowser *fb; - GtkWidget *window; - - store = camel_digest_store_new ("digest:/"); - - digest = camel_digest_folder_new (store, message); - camel_object_unref (CAMEL_OBJECT (store)); - if (!digest) - return; - - camel_folder_set_message_flags (folder, uid, CAMEL_MESSAGE_SEEN, CAMEL_MESSAGE_SEEN); - - fb = (FolderBrowser *) folder_browser_new (folder_browser->shell, NULL); - message_list_set_hidedeleted(fb->message_list, 0); - folder_browser_set_message_preview (fb, TRUE); - folder_browser_set_folder (fb, digest, "digest:/"); - camel_object_unref (CAMEL_OBJECT (digest)); - gtk_widget_show (GTK_WIDGET (fb)); - - window = folder_browser_window_new (fb); - gtk_widget_show (window); - } -} - -void -view_digest (GtkWidget *widget, gpointer user_data) -{ - FolderBrowser *fb = FOLDER_BROWSER (user_data); - GPtrArray *uids; - int i; - - if (FOLDER_BROWSER_IS_DESTROYED (fb)) - return; - - uids = g_ptr_array_new (); - message_list_foreach (fb->message_list, enumerate_msg, uids); - - if (uids->len > 10 && !are_you_sure (_("Are you sure you want to open all %d messages in separate windows?"), uids, fb)) - return; - - /* FIXME: use mail_get_messages() */ - for (i = 0; i < uids->len; i++) { - mail_get_message (fb->folder, uids->pdata [i], do_view_digest, fb, mail_thread_queued); - g_free (uids->pdata [i]); - } - g_ptr_array_free (uids, TRUE); -} - -static void do_view_message (CamelFolder *folder, const char *uid, CamelMimeMessage *message, void *data) { FolderBrowser *fb = FOLDER_BROWSER (data); |