aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog1
-rw-r--r--mail/mail-config.c9
2 files changed, 6 insertions, 4 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 862289fa6a..92618fd407 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -6,6 +6,7 @@
(config_write_style): Reuse config->gtkrc string instead of
constructing the path again.
(mail_config_write_on_exit): Free the gtkrc path.
+ (config_write_style): fflush the gtkrc file.
* em-popup.c (emp_popup_resend): Updated the #if 0'd code for the
API chanegs made to em_utils_edit_messages().
diff --git a/mail/mail-config.c b/mail/mail-config.c
index 933aebb9e9..c16b44b4d3 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -278,16 +278,17 @@ config_write_style (void)
" font_name = \"%s\"\n",
fix_font, var_font);
}
- fprintf (rc, "}\n\n");
+ fprintf (rc, "}\n\n");
fprintf (rc, "widget \"*.EMFolderView.*.GtkHTML\" style \"evolution-mail-custom-fonts\"\n");
fprintf (rc, "widget \"*.EMFolderBrowser.*.GtkHTML\" style \"evolution-mail-custom-fonts\"\n");
fprintf (rc, "widget \"*.EMMessageBrowser.*.GtkHTML\" style \"evolution-mail-custom-fonts\"\n");
fprintf (rc, "widget \"*.BonoboPlug.*.GtkHTML\" style \"evolution-mail-custom-fonts\"\n");
fprintf (rc, "widget \"*.EvolutionMailPrintHTMLWidget\" style \"evolution-mail-custom-fonts\"\n");
-
- if (fclose (rc) == 0)
- gtk_rc_reparse_all ();
+ fflush (rc);
+ fclose (rc);
+
+ gtk_rc_reparse_all ();
}
static void