From 70c9d1ce6afba17ffc1ae583ef40656959967b22 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 1 Aug 2002 03:54:13 +0000 Subject: Removed folder-browser-window from the build. 2002-07-31 Jeffrey Stedfast * 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 --- mail/mail-display.c | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'mail/mail-display.c') diff --git a/mail/mail-display.c b/mail/mail-display.c index 528bb07fe4..e2aa411744 100644 --- a/mail/mail-display.c +++ b/mail/mail-display.c @@ -50,7 +50,6 @@ #include "folder-browser-factory.h" #include "mail-stream-gtkhtml.h" #include "message-tag-followup.h" -#include "folder-browser-window.h" #include "folder-browser.h" #include "mail-display.h" #include "mail-config.h" @@ -276,33 +275,6 @@ mail_display_jump_to_anchor (MailDisplay *md, const char *url) gtk_html_jump_to_anchor (md->html, anchor + 1); } -static void -mail_display_digest_clicked (MailDisplay *md, const char *url) -{ - FolderBrowser *fb, *parent_fb; - CamelFolder *digest; - CamelStore *store; - GtkWidget *window; - - parent_fb = (FolderBrowser *) gtk_widget_get_ancestor (GTK_WIDGET (md), FOLDER_BROWSER_TYPE); - - store = camel_digest_store_new (url); - - digest = camel_digest_folder_new (store, md->current_message); - camel_object_unref (CAMEL_OBJECT (store)); - if (!digest) - return; - - fb = (FolderBrowser *) folder_browser_new (parent_fb->shell, NULL); - folder_browser_set_message_preview (fb, TRUE); - folder_browser_set_folder (fb, digest, url); - camel_object_unref (CAMEL_OBJECT (digest)); - gtk_widget_show (GTK_WIDGET (fb)); - - window = folder_browser_window_new (fb); - gtk_widget_show (window); -} - static void on_link_clicked (GtkHTML *html, const char *url, MailDisplay *md) { @@ -310,8 +282,6 @@ on_link_clicked (GtkHTML *html, const char *url, MailDisplay *md) g_warning ("Can't handle news URLs yet."); } else if (!g_strncasecmp (url, "mailto:", 7)) { send_to_url (url); - } else if (!g_strncasecmp (url, "digest:", 7)) { - mail_display_digest_clicked (md, url); } else if (*url == '#') { mail_display_jump_to_anchor (md, url); } else { -- cgit