aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.c
diff options
context:
space:
mode:
authorRadek Doulik <rodo@ximian.com>2001-03-21 00:50:43 +0800
committerRadek Doulik <rodo@src.gnome.org>2001-03-21 00:50:43 +0800
commit5b140dc1c18fa12b56438bd1045bf2960602b022 (patch)
tree3581ca9c002456b50c49714570ddd1937fb9e9a3 /mail/mail-config.c
parent3e105b5bb73b88a597ca56c14319644e4ca4c1ea (diff)
downloadgsoc2013-evolution-5b140dc1c18fa12b56438bd1045bf2960602b022.tar
gsoc2013-evolution-5b140dc1c18fa12b56438bd1045bf2960602b022.tar.gz
gsoc2013-evolution-5b140dc1c18fa12b56438bd1045bf2960602b022.tar.bz2
gsoc2013-evolution-5b140dc1c18fa12b56438bd1045bf2960602b022.tar.lz
gsoc2013-evolution-5b140dc1c18fa12b56438bd1045bf2960602b022.tar.xz
gsoc2013-evolution-5b140dc1c18fa12b56438bd1045bf2960602b022.tar.zst
gsoc2013-evolution-5b140dc1c18fa12b56438bd1045bf2960602b022.zip
set color in html citation
2001-03-20 Radek Doulik <rodo@ximian.com> * mail-tools.c (mail_tool_quote_message): set color in html citation * mail-config.c: added citation highlighting configuration * mail-tools.c (mail_tool_quote_message): use citation highlighting * mail-display.c (mail_text_write): use citation highlighting svn path=/trunk/; revision=8848
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r--mail/mail-config.c52
1 files changed, 51 insertions, 1 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c
index 33edd27ecc..9630def2df 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -40,6 +40,8 @@ typedef struct {
gboolean view_source;
gint paned_size;
gboolean send_html;
+ gboolean citation_highlight;
+ guint32 citation_color;
gboolean prompt_empty_subject;
gint seen_timeout;
@@ -193,7 +195,7 @@ mail_config_clear (void)
g_slist_free (config->news);
config->news = NULL;
}
-
+
/* overkill? */
memset (config, 0, sizeof (MailConfig));
}
@@ -335,6 +337,20 @@ config_read (void)
config->send_html = FALSE;
g_free (str);
+ /* Citation */
+ str = g_strdup_printf ("=%s/config/Mail=/Display/citation_highlight",
+ evolution_dir);
+ config->citation_highlight = gnome_config_get_bool_with_default (str, &def);
+ if (def)
+ config->citation_highlight = TRUE;
+ g_free (str);
+ str = g_strdup_printf ("=%s/config/Mail=/Display/citation_color",
+ evolution_dir);
+ config->citation_color = gnome_config_get_int_with_default (str, &def);
+ if (def)
+ config->citation_color = 0x737373;
+ g_free (str);
+
/* Mark as seen timeout */
str = g_strdup_printf ("=%s/config/Mail=/Display/seen_timeout",
evolution_dir);
@@ -509,6 +525,16 @@ mail_config_write_on_exit (void)
gnome_config_set_bool (str, config->send_html);
g_free (str);
+ /* Citation */
+ str = g_strdup_printf ("=%s/config/Mail=/Display/citation_highlight",
+ evolution_dir);
+ gnome_config_set_bool (str, config->citation_highlight);
+ g_free (str);
+ str = g_strdup_printf ("=%s/config/Mail=/Display/citation_color",
+ evolution_dir);
+ gnome_config_set_int (str, config->citation_color);
+ g_free (str);
+
/* Empty Subject */
str = g_strdup_printf ("=%s/config/Mail=/Prompts/empty_subject",
evolution_dir);
@@ -593,6 +619,30 @@ mail_config_set_send_html (gboolean send_html)
config->send_html = send_html;
}
+gboolean
+mail_config_get_citation_highlight (void)
+{
+ return config->citation_highlight;
+}
+
+void
+mail_config_set_citation_highlight (gboolean citation_highlight)
+{
+ config->citation_highlight = citation_highlight;
+}
+
+guint32
+mail_config_get_citation_color (void)
+{
+ return config->citation_color;
+}
+
+void
+mail_config_set_citation_color (guint32 citation_color)
+{
+ config->citation_color = citation_color;
+}
+
gint
mail_config_get_mark_as_seen_timeout (void)
{