aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-03-09 07:13:13 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-03-09 07:13:13 +0800
commitcf7a5095c20f8ae5bd4fd2ad92fe78599dd0768b (patch)
tree4258863c58a3e30f97ea8aa9c032bc8c4fca3208 /mail
parent8a81ec271ed0ab05b8fdfb5cbf374867b3906352 (diff)
downloadgsoc2013-evolution-cf7a5095c20f8ae5bd4fd2ad92fe78599dd0768b.tar
gsoc2013-evolution-cf7a5095c20f8ae5bd4fd2ad92fe78599dd0768b.tar.gz
gsoc2013-evolution-cf7a5095c20f8ae5bd4fd2ad92fe78599dd0768b.tar.bz2
gsoc2013-evolution-cf7a5095c20f8ae5bd4fd2ad92fe78599dd0768b.tar.lz
gsoc2013-evolution-cf7a5095c20f8ae5bd4fd2ad92fe78599dd0768b.tar.xz
gsoc2013-evolution-cf7a5095c20f8ae5bd4fd2ad92fe78599dd0768b.tar.zst
gsoc2013-evolution-cf7a5095c20f8ae5bd4fd2ad92fe78599dd0768b.zip
Bug 643507 - Font preferences don't work
Diffstat (limited to 'mail')
-rw-r--r--mail/mail-config.c96
1 files changed, 0 insertions, 96 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c
index 77204f7830..d1f87b9dd6 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -43,8 +43,6 @@
#include "mail-tools.h"
typedef struct {
- gchar *gtkrc;
-
GSList *labels;
gboolean address_compress;
@@ -62,79 +60,6 @@ extern gint camel_header_param_encode_filenames_in_rfc_2047;
static MailConfig *config = NULL;
static void
-config_write_style (void)
-{
- GConfClient *client;
- gboolean custom;
- gchar *fix_font;
- gchar *var_font;
- gchar *citation_color;
- gchar *spell_color;
- const gchar *key;
- FILE *rc;
-
- if (!(rc = g_fopen (config->gtkrc, "wt"))) {
- g_warning ("unable to open %s", config->gtkrc);
- return;
- }
-
- client = gconf_client_get_default ();
-
- key = "/apps/evolution/mail/display/fonts/use_custom";
- custom = gconf_client_get_bool (client, key, NULL);
-
- key = "/apps/evolution/mail/display/fonts/variable";
- var_font = gconf_client_get_string (client, key, NULL);
-
- key = "/apps/evolution/mail/display/fonts/monospace";
- fix_font = gconf_client_get_string (client, key, NULL);
-
- key = "/apps/evolution/mail/display/citation_colour";
- citation_color = gconf_client_get_string (client, key, NULL);
-
- key = "/apps/evolution/mail/composer/spell_color";
- spell_color = gconf_client_get_string (client, key, NULL);
-
- fprintf (rc, "style \"evolution-mail-custom-fonts\" {\n");
- fprintf (rc, " GtkHTML::spell_error_color = \"%s\"\n", spell_color);
- g_free (spell_color);
-
- key = "/apps/evolution/mail/display/mark_citations";
- if (gconf_client_get_bool (client, key, NULL))
- fprintf (rc, " GtkHTML::cite_color = \"%s\"\n",
- citation_color);
- g_free (citation_color);
-
- if (custom && var_font && fix_font) {
- fprintf (rc,
- " GtkHTML::fixed_font_name = \"%s\"\n"
- " font_name = \"%s\"\n",
- fix_font, var_font);
- }
- g_free (fix_font);
- g_free (var_font);
-
- fprintf (rc, "}\n\n");
-
- fprintf (rc, "class \"EWebView\" style \"evolution-mail-custom-fonts\"\n");
- fflush (rc);
- fclose (rc);
-
- gtk_rc_reparse_all ();
-
- g_object_unref (client);
-}
-
-static void
-gconf_style_changed (GConfClient *client,
- guint cnxn_id,
- GConfEntry *entry,
- gpointer user_data)
-{
- config_write_style ();
-}
-
-static void
gconf_outlook_filenames_changed (GConfClient *client,
guint cnxn_id,
GConfEntry *entry,
@@ -497,11 +422,6 @@ mail_config_init (EMailSession *session)
return;
config = g_new0 (MailConfig, 1);
- config->gtkrc = g_build_filename (
- mail_session_get_config_dir (),
- "gtkrc-mail-fonts", NULL);
-
- gtk_rc_parse (config->gtkrc);
client = gconf_client_get_default ();
@@ -515,10 +435,6 @@ mail_config_init (EMailSession *session)
client, "/apps/evolution/mail/composer",
GCONF_CLIENT_PRELOAD_ONELEVEL, NULL);
- key = "/apps/evolution/mail/composer/spell_color";
- func = (GConfClientNotifyFunc) gconf_style_changed;
- gconf_client_notify_add (client, key, func, NULL, NULL, NULL);
-
key = "/apps/evolution/mail/composer/outlook_filenames";
func = (GConfClientNotifyFunc) gconf_outlook_filenames_changed;
gconf_outlook_filenames_changed (client, 0, NULL, NULL);
@@ -544,24 +460,12 @@ mail_config_init (EMailSession *session)
&config->address_count, NULL, NULL);
config->address_count = gconf_client_get_int (client, key, NULL);
- key = "/apps/evolution/mail/display/citation_colour";
- func = (GConfClientNotifyFunc) gconf_style_changed;
- gconf_client_notify_add (client, key, func, NULL, NULL, NULL);
-
- key = "/apps/evolution/mail/display/mark_citations";
- func = (GConfClientNotifyFunc) gconf_style_changed;
- gconf_client_notify_add (client, key, func, NULL, NULL, NULL);
-
/* Font Configuration */
gconf_client_add_dir (
client, "/apps/evolution/mail/display/fonts",
GCONF_CLIENT_PRELOAD_ONELEVEL, NULL);
- key = "/apps/evolution/mail/display/fonts";
- func = (GConfClientNotifyFunc) gconf_style_changed;
- gconf_client_notify_add (client, key, func, NULL, NULL, NULL);
-
/* Junk Configuration */
gconf_client_add_dir (