aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.c
diff options
context:
space:
mode:
authorRadek Doulik <rodo@ximian.com>2004-05-07 22:47:59 +0800
committerRadek Doulik <rodo@src.gnome.org>2004-05-07 22:47:59 +0800
commit7aa2882d38e0cf537c53e2eca23c1a748d288bd7 (patch)
treef1787fad43fd14c1a9f3a8fada832c7da2e3e2f8 /mail/mail-config.c
parent1f5bf3a71fdf568c6b3c7b8f5bb548635cafd41a (diff)
downloadgsoc2013-evolution-7aa2882d38e0cf537c53e2eca23c1a748d288bd7.tar.gz
gsoc2013-evolution-7aa2882d38e0cf537c53e2eca23c1a748d288bd7.tar.zst
gsoc2013-evolution-7aa2882d38e0cf537c53e2eca23c1a748d288bd7.zip
set cite_color property of gtkhtml widgets (mail_config_init): add
2004-05-07 Radek Doulik <rodo@ximian.com> * mail-config.c (config_write_style): set cite_color property of gtkhtml widgets (mail_config_init): add /apps/evolution/mail/display dir to gconf client and watch for mark_citations and citation_colour changes See bug #57587 svn path=/trunk/; revision=25824
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r--mail/mail-config.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c
index f6f61198dc..e2d5012f27 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -93,6 +93,8 @@ typedef struct {
guint font_notify_id;
guint spell_notify_id;
+ guint mark_citations__notify_id;
+ guint citation_colour_notify_id;
GPtrArray *mime_types;
guint mime_types_notify_id;
@@ -282,6 +284,10 @@ config_write_style (void)
fprintf (rc, " GtkHTML::spell_error_color = \"#%02x%02x%02x\"\n",
0xff & (red >> 8), 0xff & (green >> 8), 0xff & (blue >> 8));
+ if (gconf_client_get_bool (config->gconf, "/apps/evolution/mail/display/mark_citations", NULL))
+ fprintf (rc, " GtkHTML::cite_color = \"%s\"\n",
+ gconf_client_get_string (config->gconf, "/apps/evolution/mail/display/citation_colour", NULL));
+
if (custom && var_font && fix_font) {
fprintf (rc,
" GtkHTML::fixed_font_name = \"%s\"\n"
@@ -342,14 +348,20 @@ mail_config_init (void)
gtk_rc_parse (filename);
g_free (filename);
- gconf_client_add_dir (config->gconf, "/apps/evolution/mail/display/fonts",
+ gconf_client_add_dir (config->gconf, "/apps/evolution/mail/display",
+ GCONF_CLIENT_PRELOAD_ONELEVEL, NULL);
+ gconf_client_add_dir (config->gconf, "/apps/evolution/mail/display/fonts",
GCONF_CLIENT_PRELOAD_ONELEVEL, NULL);
- gconf_client_add_dir (config->gconf, "/GNOME/Spell",
+ gconf_client_add_dir (config->gconf, "/GNOME/Spell",
GCONF_CLIENT_PRELOAD_ONELEVEL, NULL);
config->font_notify_id = gconf_client_notify_add (config->gconf, "/apps/evolution/mail/display/fonts",
gconf_style_changed, NULL, NULL, NULL);
config->spell_notify_id = gconf_client_notify_add (config->gconf, "/GNOME/Spell",
gconf_style_changed, NULL, NULL, NULL);
+ config->mark_citations__notify_id = gconf_client_notify_add (config->gconf, "/apps/evolution/mail/display/mark_citations",
+ gconf_style_changed, NULL, NULL, NULL);
+ config->citation_colour_notify_id = gconf_client_notify_add (config->gconf, "/apps/evolution/mail/display/citation_colour",
+ gconf_style_changed, NULL, NULL, NULL);
gconf_client_add_dir (config->gconf, "/apps/evolution/mail/labels",
GCONF_CLIENT_PRELOAD_ONELEVEL, NULL);