From 2864edc6325ba994179b35b6a40d9d053e8805d8 Mon Sep 17 00:00:00 2001 From: Jason Leach Date: Tue, 10 Jul 2001 21:08:02 +0000 Subject: [Bug #4305: Make the automatic mark-as-read timer optional] 2001-07-10 Jason Leach [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 --- mail/folder-browser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mail/folder-browser.c') diff --git a/mail/folder-browser.c b/mail/folder-browser.c index 2afbe445f5..c682b850d6 100644 --- a/mail/folder-browser.c +++ b/mail/folder-browser.c @@ -1693,7 +1693,7 @@ done_message_selected (CamelFolder *folder, char *uid, CamelMimeMessage *msg, vo if (fb->seen_id) gtk_timeout_remove(fb->seen_id); - if (msg) { + if (mail_config_get_do_seen_timeout() && msg) { if (timeout > 0) fb->seen_id = gtk_timeout_add(timeout, do_mark_seen, fb); else -- cgit v1.2.3