diff options
author | Kjartan Maraas <kmaraas@gnome.org> | 2005-07-13 18:38:07 +0800 |
---|---|---|
committer | Kjartan Maraas <kmaraas@src.gnome.org> | 2005-07-13 18:38:07 +0800 |
commit | a09f4c7c08cb5a7e171b6a71ae4465b8dfd94152 (patch) | |
tree | e8ef2c79061efc8c5a54da5958a60ef8ee0110dc /mail/mail-config.c | |
parent | 0cea49284ec02828d1dd1ec85cb28b8ea914a2eb (diff) | |
download | gsoc2013-evolution-a09f4c7c08cb5a7e171b6a71ae4465b8dfd94152.tar.gz gsoc2013-evolution-a09f4c7c08cb5a7e171b6a71ae4465b8dfd94152.tar.zst gsoc2013-evolution-a09f4c7c08cb5a7e171b6a71ae4465b8dfd94152.zip |
Free font name Free font name and name of citation color. Free search
2005-07-13 Kjartan Maraas <kmaraas@gnome.org>
* em-mailer-prefs.c: (em_mailer_prefs_construct): Free font name
* mail-config.c: (config_write_style): Free font name and name
of citation color.
* message-list.c: (regen_list_regened), (regen_list_free): Free
search string. Thanks to Michael Zucchi for walking me through
this one. My brain wasn't running on all it's cylinders...
svn path=/trunk/; revision=29759
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r-- | mail/mail-config.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c index 520aec3091..92620b6494 100644 --- a/mail/mail-config.c +++ b/mail/mail-config.c @@ -249,6 +249,7 @@ config_write_style (void) gboolean custom; char *fix_font; char *var_font; + char *citation_color; FILE *rc; if (!(rc = fopen (config->gtkrc, "wt"))) { @@ -259,7 +260,7 @@ 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); - + citation_color = gconf_client_get_string (config->gconf, "/apps/evolution/mail/display/citation_colour", 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)); @@ -270,7 +271,8 @@ config_write_style (void) 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)); + citation_color); + g_free (citation_color); if (custom && var_font && fix_font) { fprintf (rc, @@ -278,6 +280,9 @@ config_write_style (void) " font_name = \"%s\"\n", fix_font, var_font); } + g_free (fix_font); + g_free (var_font); + fprintf (rc, "}\n\n"); fprintf (rc, "widget \"*.EMFolderView.*.GtkHTML\" style \"evolution-mail-custom-fonts\"\n"); |