aboutsummaryrefslogtreecommitdiff
path: root/src/headerview.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/headerview.c')
-rw-r--r--src/headerview.c23
1 files changed, 10 insertions, 13 deletions
diff --git a/src/headerview.c b/src/headerview.c
index 2a6d7369..ee730f37 100644
--- a/src/headerview.c
+++ b/src/headerview.c
@@ -139,20 +139,17 @@ void headerview_init(HeaderView *headerview)
{
static PangoFontDescription *boldfont = NULL;
- if (!boldfont && prefs_common.boldfont)
- boldfont = pango_font_description_from_string
- (prefs_common.boldfont);
-
-#define SET_FONT_STYLE(wid) \
-{ \
- if (boldfont) \
- gtk_widget_modify_font(headerview->wid, boldfont); \
-}
+ if (!boldfont) {
+ boldfont = pango_font_description_new();
+ pango_font_description_set_weight(boldfont, PANGO_WEIGHT_BOLD);
+ }
- SET_FONT_STYLE(from_header_label);
- SET_FONT_STYLE(to_header_label);
- SET_FONT_STYLE(ng_header_label);
- SET_FONT_STYLE(subject_header_label);
+ if (boldfont) {
+ gtk_widget_modify_font(headerview->from_header_label, boldfont);
+ gtk_widget_modify_font(headerview->to_header_label, boldfont);
+ gtk_widget_modify_font(headerview->ng_header_label, boldfont);
+ gtk_widget_modify_font(headerview->subject_header_label, boldfont);
+ }
headerview_clear(headerview);
headerview_set_visibility(headerview, prefs_common.display_header_pane);