From 0fa1b87e9ee6b947b2706a44fc7429730655b3f9 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 21 Nov 2000 22:09:51 +0000 Subject: New function to return if user wants to view message source. 2000-11-21 Jeffrey Stedfast * mail-config.c (mail_config_view_source): New function to return if user wants to view message source. (mail_config_set_view_source): New function to set whether the view wants to view source. * mail-ops.c (mail_do_view_message_sources): Removed. We're not gonna view-source this way anymore. * folder-browser-factory.c: Removed the ViewSource bonobo verb from the Message menu. (control_activate): Added ViewSource. * folder-browser.c (on_right_click): Removed Message menu item to view message source. (folder_browser_toggle_view_source): New callback to set whether or not the MailDisplay shows the raw message or the pretty-ified message. * mail-callbacks.c: Removed view_source. * mail-display.c (redisplay): If toggle_raw is set then display the raw message else display the pretty formatted message. (mail_display_redisplay): New function to force the redisplay of a message. * mail-format.c (mail_format_raw_message): New function to write the raw message data. svn path=/trunk/; revision=6639 --- mail/mail-config.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'mail/mail-config.c') diff --git a/mail/mail-config.c b/mail/mail-config.c index 73dce61f9c..df8d7bc0a3 100644 --- a/mail/mail-config.c +++ b/mail/mail-config.c @@ -46,6 +46,7 @@ typedef struct MailConfigService *transport; gboolean thread_list; + gboolean view_source; gint paned_size; gboolean send_html; gint seen_timeout; @@ -425,12 +426,24 @@ mail_config_thread_list (void) return config->thread_list; } +gboolean +mail_config_view_source (void) +{ + return config->view_source; +} + void mail_config_set_thread_list (gboolean value) { config->thread_list = value; } +void +mail_config_set_view_source (gboolean value) +{ + config->view_source = value; +} + gint mail_config_paned_size (void) { -- cgit v1.2.3