aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.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-config.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-config.c')
-rw-r--r--mail/mail-config.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c
index b2ab45e859..da9629488e 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -47,6 +47,7 @@ typedef struct
gboolean thread_list;
gint paned_size;
gboolean send_html;
+ gint seen_timeout;
} MailConfig;
static const char GCONFPATH[] = "/apps/Evolution/Mail";
@@ -266,6 +267,12 @@ config_read (void)
config->send_html = gnome_config_get_bool (str);
g_free (str);
+ /* Mark as seen timeout */
+ str = g_strdup_printf ("=%s/config/Mail=/Display/seen_timeout=1500",
+ evolution_dir);
+ config->seen_timeout = gnome_config_get_int (str);
+ g_free (str);
+
/* Show Messages Threaded */
str = g_strdup_printf ("=%s/config/Mail=/Display/thread_list",
evolution_dir);
@@ -369,6 +376,12 @@ mail_config_write (void)
gnome_config_set_string (str, config->transport->url);
g_free (str);
+ /* Mark as seen timeout */
+ str = g_strdup_printf ("=%s/config/Mail=/Display/seen_timeout",
+ evolution_dir);
+ gnome_config_set_int (str, config->seen_timeout);
+ g_free (str);
+
/* Format */
str = g_strdup_printf ("=%s/config/Mail=/Format/send_html",
evolution_dir);
@@ -441,6 +454,18 @@ mail_config_set_send_html (gboolean send_html)
config->send_html = send_html;
}
+gint
+mail_config_mark_as_seen_timeout (void)
+{
+ return config->seen_timeout;
+}
+
+void
+mail_config_set_mark_as_seen_timeout (gint timeout)
+{
+ config->seen_timeout = timeout;
+}
+
MailConfigIdentity *
mail_config_get_default_identity (void)
{