diff options
Diffstat (limited to 'mail/mail-display.c')
-rw-r--r-- | mail/mail-display.c | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/mail/mail-display.c b/mail/mail-display.c index fe35dec71c..45b7000f69 100644 --- a/mail/mail-display.c +++ b/mail/mail-display.c @@ -2653,10 +2653,22 @@ static void display_notify (GConfClient *gconf, guint cnxn_id, GConfEntry *entry, gpointer data) { MailDisplay *md = data; + gchar *tkey; + + g_return_if_fail (entry != NULL); + g_return_if_fail (gconf_entry_get_key (entry) != NULL); + g_return_if_fail (gconf_entry_get_value (entry) != NULL); + + tkey = strrchr (entry->key, '/'); - /* this should really check which setting has changed but it is late */ - gtk_html_set_animate (md->html, gconf_client_get_bool (gconf, "/apps/evolution/mail/display/animate_images", NULL)); - mail_display_queue_redisplay ((MailDisplay *)data); + g_return_if_fail (tkey != NULL); + + if (!strcmp (tkey, "/animate_images")) { + gtk_html_set_animate (md->html, gconf_value_get_bool (gconf_entry_get_value(entry))); + } else if (!strcmp (tkey, "/citation_color") + || !strcmp (tkey, "/mark_citations")) { + mail_display_queue_redisplay (md); + } } GtkWidget * |