diff options
author | Not Zed <NotZed@Ximian.com> | 2001-04-05 10:06:26 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2001-04-05 10:06:26 +0800 |
commit | 130017e15709e1f16cac8271214d0f7f41845a2f (patch) | |
tree | 85723c00f1d45c5352f2c4e97e445c85f4a1c761 /mail/mail-config.c | |
parent | f66390af642e3a02bbfb2974955eeae14770e406 (diff) | |
download | gsoc2013-evolution-130017e15709e1f16cac8271214d0f7f41845a2f.tar gsoc2013-evolution-130017e15709e1f16cac8271214d0f7f41845a2f.tar.gz gsoc2013-evolution-130017e15709e1f16cac8271214d0f7f41845a2f.tar.bz2 gsoc2013-evolution-130017e15709e1f16cac8271214d0f7f41845a2f.tar.lz gsoc2013-evolution-130017e15709e1f16cac8271214d0f7f41845a2f.tar.xz gsoc2013-evolution-130017e15709e1f16cac8271214d0f7f41845a2f.tar.zst gsoc2013-evolution-130017e15709e1f16cac8271214d0f7f41845a2f.zip |
Merge from evolution-0-10 to evolution-0-10-merge-0 into head.
2001-04-05 Not Zed <NotZed@Ximian.com>
* Merge from evolution-0-10 to evolution-0-10-merge-0 into head.
svn path=/trunk/; revision=9193
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r-- | mail/mail-config.c | 27 |
1 files changed, 27 insertions, 0 deletions
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) { |