aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
authorRichard Hult <rhult@hem.passagen.se>2000-08-17 06:56:34 +0800
committerJP Rosevear <jpr@src.gnome.org>2000-08-17 06:56:34 +0800
commit1cd648f355688ad788a81b832e8e7e7ad1aa6d1a (patch)
treea63649ccaeaa73502e2b25e1b312fb5a24f9a169 /mail/mail-ops.c
parentc60f1c5c77d1ca39618ecea09caaaa36b17beadd (diff)
downloadgsoc2013-evolution-1cd648f355688ad788a81b832e8e7e7ad1aa6d1a.tar
gsoc2013-evolution-1cd648f355688ad788a81b832e8e7e7ad1aa6d1a.tar.gz
gsoc2013-evolution-1cd648f355688ad788a81b832e8e7e7ad1aa6d1a.tar.bz2
gsoc2013-evolution-1cd648f355688ad788a81b832e8e7e7ad1aa6d1a.tar.lz
gsoc2013-evolution-1cd648f355688ad788a81b832e8e7e7ad1aa6d1a.tar.xz
gsoc2013-evolution-1cd648f355688ad788a81b832e8e7e7ad1aa6d1a.tar.zst
gsoc2013-evolution-1cd648f355688ad788a81b832e8e7e7ad1aa6d1a.zip
Use a configurable timeout.
2000-08-16 Richard Hult <rhult@hem.passagen.se> * mail-ops.c (cleanup_display_message): Use a configurable timeout. * mail-config.c (mail_config_set_mark_as_seen_timeout): New function for the settable mark-as-seen timeout. (mail_config_mark_as_seen_timeout): Likewise. (mail_config_write): Write the timeout setting. (config_read): Read timeout setting. * mail-config-gui.c (mail_config): Add option for the settable mark-as-seen timeout. (mail_config_apply_clicked): Likewise. (timeout_changed): New function for the timeout setting. svn path=/trunk/; revision=4859
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index ca3d208ded..1a3ff0efe3 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -1604,14 +1604,22 @@ cleanup_display_message (gpointer in_data, gpointer op_data,
if (data->msg == NULL) {
mail_display_set_message (md, NULL);
} else {
+ gint timeout = mail_config_mark_as_seen_timeout ();
+
if (input->ml->seen_id)
gtk_timeout_remove (input->ml->seen_id);
mail_display_set_message (md, CAMEL_MEDIUM (data->msg));
camel_object_unref (CAMEL_OBJECT (data->msg));
- input->ml->seen_id =
- gtk_timeout_add (1500, input->timeout, input->ml);
+ if (timeout > 0) {
+ input->ml->seen_id = gtk_timeout_add (timeout,
+ input->timeout,
+ input->ml);
+ } else {
+ input->ml->seen_id = 0;
+ input->timeout (input->ml);
+ }
}
if (input->uid)