aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-01-17 17:14:36 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-01-17 17:14:36 +0800
commit80a00a6df927a9e5561e97cfdbac5856e2269370 (patch)
tree45e49550bef48acd6b14f40bfbb3be1dd52ea235 /mail/mail-config.c
parent485d80d3360e1fcfb9bf08da6e22d09526d3db52 (diff)
downloadgsoc2013-evolution-80a00a6df927a9e5561e97cfdbac5856e2269370.tar
gsoc2013-evolution-80a00a6df927a9e5561e97cfdbac5856e2269370.tar.gz
gsoc2013-evolution-80a00a6df927a9e5561e97cfdbac5856e2269370.tar.bz2
gsoc2013-evolution-80a00a6df927a9e5561e97cfdbac5856e2269370.tar.lz
gsoc2013-evolution-80a00a6df927a9e5561e97cfdbac5856e2269370.tar.xz
gsoc2013-evolution-80a00a6df927a9e5561e97cfdbac5856e2269370.tar.zst
gsoc2013-evolution-80a00a6df927a9e5561e97cfdbac5856e2269370.zip
Update to use EMessageBox and to record if the user doesn't want to ever
2001-01-17 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (ask_confirm_for_empty_subject): Update to use EMessageBox and to record if the user doesn't want to ever see this dialog again. * mail-config.c (mail_config_get_prompt_empty_subject): New config function. (mail_config_set_prompt_empty_subject): Another new one. svn path=/trunk/; revision=7567
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 47a2392767..78107cce95 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -39,6 +39,7 @@ typedef struct {
gboolean view_source;
gint paned_size;
gboolean send_html;
+ gboolean prompt_empty_subject;
gint seen_timeout;
GSList *accounts;
@@ -331,6 +332,12 @@ config_read (void)
config->paned_size = gnome_config_get_int (str);
g_free (str);
+ /* Empty Subject */
+ str = g_strdup_printf ("=%s/config/Mail=/Prompts/empty_subject=true",
+ evolution_dir);
+ config->prompt_empty_subject = gnome_config_get_bool (str);
+ g_free (str);
+
gnome_config_sync ();
}
@@ -424,6 +431,12 @@ mail_config_write (void)
gnome_config_set_bool (str, config->send_html);
g_free (str);
+ /* Empty Subject */
+ str = g_strdup_printf ("=%s/config/Mail=/Prompts/empty_subject",
+ evolution_dir);
+ gnome_config_set_bool (str, config->prompt_empty_subject);
+ g_free (str);
+
gnome_config_sync ();
}
@@ -526,6 +539,18 @@ mail_config_set_mark_as_seen_timeout (gint timeout)
config->seen_timeout = timeout;
}
+gboolean
+mail_config_get_prompt_empty_subject (void)
+{
+ return config->prompt_empty_subject;
+}
+
+void
+mail_config_set_prompt_empty_subject (gboolean value)
+{
+ config->prompt_empty_subject = value;
+}
+
const MailConfigAccount *
mail_config_get_default_account (void)
{