diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-05-23 04:47:22 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-05-23 04:47:22 +0800 |
commit | f814167ed6bde5380e942aba3a94573aea6edb5d (patch) | |
tree | 8d00759166ae09e46b158d0e52d335448d5afb9b /mail/mail-config.c | |
parent | f384952f1b1a4f5c0073bccfe67e417a4ac11e9c (diff) | |
download | gsoc2013-evolution-f814167ed6bde5380e942aba3a94573aea6edb5d.tar.gz gsoc2013-evolution-f814167ed6bde5380e942aba3a94573aea6edb5d.tar.zst gsoc2013-evolution-f814167ed6bde5380e942aba3a94573aea6edb5d.zip |
Save the message-display style. (config_read): Read the message-display
2001-05-22 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (mail_config_write_on_exit): Save the
message-display style.
(config_read): Read the message-display style.
svn path=/trunk/; revision=9938
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r-- | mail/mail-config.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c index 1560e6e602..aba9a56220 100644 --- a/mail/mail-config.c +++ b/mail/mail-config.c @@ -469,6 +469,14 @@ config_read (void) config->default_forward_style = MAIL_CONFIG_FORWARD_ATTACHED; g_free (str); + /* Message Display */ + str = g_strdup_printf ("=%s/config/Mail=/Format/message_display_style", + evolution_dir); + config->message_display_style = gnome_config_get_int_with_default (str, &def); + if (def) + config->message_display_style = MAIL_CONFIG_DISPLAY_NORMAL; + g_free (str); + gnome_config_sync (); } @@ -656,7 +664,13 @@ mail_config_write_on_exit (void) evolution_dir); gnome_config_set_int (str, config->default_forward_style); g_free (str); - + + /* Message Display */ + str = g_strdup_printf ("=%s/config/Mail=/Format/message_display_style", + evolution_dir); + gnome_config_set_int (str, config->message_display_style); + g_free (str); + /* Passwords */ gnome_config_private_clean_section ("/Evolution/Passwords"); sources = mail_config_get_sources (); |