projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
77ea039
)
Fix bold font not being derived from normal font, but from system font
author
Colin Leroy
<colin@colino.net>
Mon, 26 May 2014 08:54:02 +0000
(10:54 +0200)
committer
Colin Leroy
<colin@colino.net>
Mon, 26 May 2014 08:54:02 +0000
(10:54 +0200)
src/folderview.c
patch
|
blob
|
history
diff --git
a/src/folderview.c
b/src/folderview.c
index 5e55e917857681eee777dc22c60d74cce840e186..4f0be44889a37043d934c002cfc326f4d7b82ea2 100644
(file)
--- 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) {
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 {
pango_font_description_set_weight
(bold_style->font_desc, PANGO_WEIGHT_BOLD);
} else {