diff options
author | Jeremy Wise <jwise@src.gnome.org> | 2000-08-09 10:06:20 +0800 |
---|---|---|
committer | Jeremy Wise <jwise@src.gnome.org> | 2000-08-09 10:06:20 +0800 |
commit | 491b3c3c779ba32dfeba25d5ffcab064e842c910 (patch) | |
tree | fe40590668731ef969f2bd3f49f6df585972ebda /mail/mail-config.c | |
parent | 6d34729106baa2e3a9fd9db29db04b0f9b8e984b (diff) | |
download | gsoc2013-evolution-491b3c3c779ba32dfeba25d5ffcab064e842c910.tar.gz gsoc2013-evolution-491b3c3c779ba32dfeba25d5ffcab064e842c910.tar.zst gsoc2013-evolution-491b3c3c779ba32dfeba25d5ffcab064e842c910.zip |
Value for threaded list view is now saved via gnome-config. This means that you can FINALLY shut off the threaded view once and for all :)
svn path=/trunk/; revision=4621
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r-- | mail/mail-config.c | 32 |
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) { |