talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit b94a982c5ca5f5a89921f009a4e9f6a3257bce14
parent 77ea0391184782d7bd76e9ccaf85b6b8a751d0da
Author: Colin Leroy <colin@colino.net>
Date:   Mon, 26 May 2014 10:54:02 +0200

Fix bold font not being derived from normal font, but from system font

Diffstat:
Msrc/folderview.c | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/folderview.c b/src/folderview.c @@ -687,6 +687,12 @@ void folderview_init(FolderView *folderview) gtkut_convert_int_to_gdk_color(prefs_common.color_new, &gdk_color); bold_style = gtk_style_copy(gtk_widget_get_style(ctree)); if (prefs_common.derive_from_normal_font || !BOLD_FONT) { + PangoFontDescription *font_desc; + font_desc = pango_font_description_from_string(NORMAL_FONT); + if (font_desc) { + pango_font_description_free(bold_style->font_desc); + bold_style->font_desc = font_desc; + } pango_font_description_set_weight (bold_style->font_desc, PANGO_WEIGHT_BOLD); } else {