aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r--mail/mail-config.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c
index 3427080cff..a62abfee5c 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -243,6 +243,12 @@ mail_config_read ()
evolution_dir);
config->send_html = gnome_config_get_bool (str);
g_free (str);
+
+ /* Show Messages Threaded */
+ str = g_strdup_printf ("=%s/config/Mail=/Display/thread_list",
+ evolution_dir);
+ config->thread_list = gnome_config_get_bool (str);
+ g_free (str);
gnome_config_sync ();
}
@@ -339,6 +345,20 @@ mail_config_write ()
evolution_dir);
gnome_config_set_bool (str, config->send_html);
g_free (str);
+
+ gnome_config_sync ();
+}
+
+void
+mail_config_write_on_exit ()
+{
+ gchar *str;
+
+ /* Show Messages Threaded */
+ str = g_strdup_printf ("=%s/config/Mail=/Display/thread_list",
+ evolution_dir);
+ gnome_config_set_bool (str, config->thread_list);
+ g_free (str);
gnome_config_sync ();
}
@@ -380,6 +400,18 @@ mail_config_send_html ()
return config->send_html;
}
+gboolean
+mail_config_thread_list ()
+{
+ return config->thread_list;
+}
+
+void
+mail_config_set_thread_list (gboolean value)
+{
+ config->thread_list = value;
+}
+
MailConfig *
mail_config_fetch (void)
{