diff options
-rw-r--r-- | mail/ChangeLog | 9 | ||||
-rw-r--r-- | mail/mail-config.c | 16 |
2 files changed, 23 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 11c5599535..005367b822 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,12 @@ +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 + 2004-05-07 Not Zed <NotZed@Ximian.com> ** See bug #57935. 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); |