aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.c
diff options
context:
space:
mode:
authorYuedong Du <yuedong.du@sun.com>2003-07-10 02:04:54 +0800
committerYuedong Du <york@src.gnome.org>2003-07-10 02:04:54 +0800
commit16ce509ec02a99acf7324c4e157cf1cf781a8a67 (patch)
treec15bbb61a05f61ec7896de3011e92fc9814b890d /mail/mail-config.c
parentfb32aa52b61de2c9e13d32a7a5f7661a6670a8f6 (diff)
downloadgsoc2013-evolution-16ce509ec02a99acf7324c4e157cf1cf781a8a67.tar.gz
gsoc2013-evolution-16ce509ec02a99acf7324c4e157cf1cf781a8a67.tar.zst
gsoc2013-evolution-16ce509ec02a99acf7324c4e157cf1cf781a8a67.zip
add a gconf key corresponding to newly introduced caret mode of gtkhtml
2003-07-10 Yuedong Du <yuedong.du@sun.com> * evolution-mail.schemas: add a gconf key corresponding to newly introduced caret mode of gtkhtml widget. * folder-browser-ui.c: new verb handling, corresponding the new menu entry for the caret mode flag. * folder-browser.h: declaration of new verb handler to the menu entry that turn caret mode on/off. The function just set the new introduced gconf key. * folder-browser.c: ditto * mail-config.c: lstione to the new gconf key, and when caret mode flag is set/unset,change the style of gtkhtml widget. see bug #44607. svn path=/trunk/; revision=21776
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r--mail/mail-config.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c
index 2881d7603e..9fce11013d 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -85,6 +85,7 @@ typedef struct {
guint font_notify_id;
guint spell_notify_id;
+ guint caret_mode_notify_id;
GPtrArray *mime_types;
guint mime_types_notify_id;
@@ -441,6 +442,7 @@ config_write_style (void)
char *fix_font;
char *var_font;
gint red = 0xffff, green = 0, blue = 0;
+ gboolean caret_mode;
/*
* This is the wrong way to get the path but it needs to
@@ -463,12 +465,14 @@ config_write_style (void)
custom = gconf_client_get_bool (config->gconf, "/apps/evolution/mail/display/fonts/use_custom", NULL);
var_font = gconf_client_get_string (config->gconf, "/apps/evolution/mail/display/fonts/variable", NULL);
fix_font = gconf_client_get_string (config->gconf, "/apps/evolution/mail/display/fonts/monospace", NULL);
+ caret_mode = gconf_client_get_bool (config->gconf, "/apps/evolution/mail/display/caret_mode", NULL);
CONFIG_GET_SPELL_VALUE (int, "/spell_error_color_red", red, (void)0, (int));
CONFIG_GET_SPELL_VALUE (int, "/spell_error_color_green", green, (void)0, (int));
CONFIG_GET_SPELL_VALUE (int, "/spell_error_color_blue", blue, (void)0, (int));
fprintf (rc, "style \"evolution-mail-custom-fonts\" {\n");
+ fprintf (rc, " GtkHTML::caret_mode = %d\n", caret_mode ? 1 :0);
fprintf (rc, " GtkHTML::spell_error_color = \"#%02x%02x%02x\"\n",
0xff & (red >> 8), 0xff & (green >> 8), 0xff & (blue >> 8));
@@ -542,6 +546,8 @@ mail_config_init (void)
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->caret_mode_notify_id = gconf_client_notify_add (config->gconf, "/apps/evolution/mail/display/caret_mode",
+ gconf_style_changed, NULL, NULL, NULL);
gconf_client_add_dir (config->gconf, "/apps/evolution/mail/labels",
GCONF_CLIENT_PRELOAD_ONELEVEL, NULL);