diff options
author | Jason Leach <jleach@ximian.com> | 2001-07-11 05:08:02 +0800 |
---|---|---|
committer | Jacob Leach <jleach@src.gnome.org> | 2001-07-11 05:08:02 +0800 |
commit | 2864edc6325ba994179b35b6a40d9d053e8805d8 (patch) | |
tree | 0186cc996d68660c1f8e0e0e28c78939c886f9ff /mail/mail-config.c | |
parent | b2716b04c952a71d385a07c32c36269024a57ea4 (diff) | |
download | gsoc2013-evolution-2864edc6325ba994179b35b6a40d9d053e8805d8.tar.gz gsoc2013-evolution-2864edc6325ba994179b35b6a40d9d053e8805d8.tar.zst gsoc2013-evolution-2864edc6325ba994179b35b6a40d9d053e8805d8.zip |
[Bug #4305: Make the automatic mark-as-read timer optional]
2001-07-10 Jason Leach <jleach@ximian.com>
[Bug #4305: Make the automatic mark-as-read timer optional]
* mail-config.glade: Necessary changes to make the Mark as "Read"
label a toggle button instead.
* mail-accounts.c (construct): Connect to the "toggled" on our new
toggle.
(timeout_toggled): New callback, called from above.
* mail-config.c (mail_config_get_do_seen_timeout): New.
(mail_config_set_do_seen_timeout): New.
(mail_config_write_on_exit): Save the preference here.
(config_read): Load it here.
svn path=/trunk/; revision=10973
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r-- | mail/mail-config.c | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c index 0f0b8ab762..59679a532c 100644 --- a/mail/mail-config.c +++ b/mail/mail-config.c @@ -65,6 +65,7 @@ typedef struct { guint32 citation_color; gboolean prompt_empty_subject; gboolean prompt_only_bcc; + gboolean do_seen_timeout; gint seen_timeout; gboolean empty_trash_on_exit; @@ -481,6 +482,10 @@ config_read (void) config->citation_color = bonobo_config_get_long_with_default ( config->db, "/Mail/Display/citation_color", 0x737373, NULL); + /* Mark as seen toggle */ + config->do_seen_timeout = bonobo_config_get_long_with_default (config->db, + "/Mail/Display/do_seen_timeout", TRUE, NULL); + /* Mark as seen timeout */ config->seen_timeout = bonobo_config_get_long_with_default (config->db, "/Mail/Display/seen_timeout", 1500, NULL); @@ -742,13 +747,16 @@ mail_config_write_on_exit (void) config->show_preview, NULL); /* Hide deleted automatically */ - bonobo_config_set_boolean (config->db, "Mail/Display/hide_deleted", + bonobo_config_set_boolean (config->db, "/Mail/Display/hide_deleted", config->hide_deleted, NULL); /* Size of vpaned in mail view */ - bonobo_config_set_long (config->db, "Mail/Display/paned_size", + bonobo_config_set_long (config->db, "/Mail/Display/paned_size", config->paned_size, NULL); - + + /* Mark as seen toggle */ + bonobo_config_set_boolean (config->db, "/Mail/Display/do_seen_timeout", + config->do_seen_timeout, NULL); /* Mark as seen timeout */ bonobo_config_set_long (config->db, "/Mail/Display/seen_timeout", config->seen_timeout, NULL); @@ -1041,6 +1049,18 @@ mail_config_set_citation_color (guint32 citation_color) config->citation_color = citation_color; } +gboolean +mail_config_get_do_seen_timeout (void) +{ + return config->do_seen_timeout; +} + +void +mail_config_set_do_seen_timeout (gboolean do_seen_timeout) +{ + config->do_seen_timeout = do_seen_timeout; +} + gint mail_config_get_mark_as_seen_timeout (void) { |