From 130017e15709e1f16cac8271214d0f7f41845a2f Mon Sep 17 00:00:00 2001 From: Not Zed Date: Thu, 5 Apr 2001 02:06:26 +0000 Subject: Merge from evolution-0-10 to evolution-0-10-merge-0 into head. 2001-04-05 Not Zed * Merge from evolution-0-10 to evolution-0-10-merge-0 into head. svn path=/trunk/; revision=9193 --- mail/mail-config.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'mail/mail-config.c') diff --git a/mail/mail-config.c b/mail/mail-config.c index cf7e1eb517..50b0e49874 100644 --- a/mail/mail-config.c +++ b/mail/mail-config.c @@ -46,6 +46,7 @@ typedef struct { gboolean thread_list; gboolean view_source; + gboolean hide_deleted; gint paned_size; gboolean send_html; gboolean citation_highlight; @@ -390,6 +391,14 @@ config_read (void) config->thread_list = FALSE; g_free (str); + /* Hide deleted automatically */ + str = g_strdup_printf ("=%s/config/Mail=/Display/hide_deleted", + evolution_dir); + config->hide_deleted = gnome_config_get_bool_with_default (str, &def); + if (def) + config->hide_deleted = FALSE; + g_free (str); + /* Size of vpaned in mail view */ str = g_strdup_printf ("=%s/config/Mail=/Display/paned_size", evolution_dir); @@ -543,6 +552,12 @@ mail_config_write_on_exit (void) evolution_dir); gnome_config_set_bool (str, config->thread_list); g_free (str); + + /* Hide deleted automatically */ + str = g_strdup_printf ("=%s/config/Mail=/Display/hide_deleted", + evolution_dir); + gnome_config_set_bool (str, config->hide_deleted); + g_free (str); /* Size of vpaned in mail view */ str = g_strdup_printf ("=%s/config/Mail=/Display/paned_size", @@ -632,6 +647,18 @@ mail_config_set_view_source (gboolean value) config->view_source = value; } +gboolean +mail_config_get_hide_deleted (void) +{ + return config->hide_deleted; +} + +void +mail_config_set_hide_deleted (gboolean value) +{ + config->hide_deleted = value; +} + gint mail_config_get_paned_size (void) { -- cgit