From feff37573756a1e7f02079e32cee51bffec086a3 Mon Sep 17 00:00:00 2001 From: Yuedong Du Date: Tue, 15 Jul 2003 09:46:45 +0000 Subject: remove the use of caret mode widget style. use new gtkhtml api to set 2003-07-15 Yuedong Du * mail-config.c: (config_write_style), (mail_config_init): remove the use of caret mode widget style. * mail-display.c: (display_notify), (mail_display_new): use new gtkhtml api to set caret mode. svn path=/trunk/; revision=21816 --- mail/mail-display.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mail/mail-display.c') diff --git a/mail/mail-display.c b/mail/mail-display.c index d62c985d32..4a81e5ae59 100644 --- a/mail/mail-display.c +++ b/mail/mail-display.c @@ -2645,6 +2645,8 @@ display_notify (GConfClient *gconf, guint cnxn_id, GConfEntry *entry, gpointer d } else if (!strcmp (tkey, "/citation_color") || !strcmp (tkey, "/mark_citations")) { mail_display_queue_redisplay (md); + } else if (!strcmp (tkey, "/caret_mode")) { + gtk_html_set_caret_mode(md->html, gconf_value_get_bool (gconf_entry_get_value(entry))); } } @@ -2691,6 +2693,7 @@ mail_display_new (void) gconf = mail_config_get_gconf_client (); gtk_html_set_animate (GTK_HTML (html), gconf_client_get_bool (gconf, "/apps/evolution/mail/display/animate_images", NULL)); + gtk_html_set_caret_mode (GTK_HTML (html), gconf_client_get_bool (gconf, "/apps/evolution/mail/display/caret_mode", NULL)); gconf_client_add_dir (gconf, "/apps/evolution/mail/display",GCONF_CLIENT_PRELOAD_NONE, NULL); mail_display->priv->display_notify_id = gconf_client_notify_add (gconf, "/apps/evolution/mail/display", -- cgit v1.2.3