aboutsummaryrefslogtreecommitdiff
path: root/src/alertpanel.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/alertpanel.c')
-rw-r--r--src/alertpanel.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/alertpanel.c b/src/alertpanel.c
index ce0c35a4..e478bafb 100644
--- a/src/alertpanel.c
+++ b/src/alertpanel.c
@@ -235,10 +235,13 @@ static void alertpanel_create(const gchar *title,
gtk_box_pack_start(GTK_BOX(hbox), label, TRUE, TRUE, 0);
gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
if (!font_desc) {
- gchar *fontstr = prefs_common.titlefont
- ? prefs_common.titlefont
- : DEFAULT_TITLE_FONT;
- font_desc = pango_font_description_from_string(fontstr);
+ gint size;
+
+ size = pango_font_description_get_size(label->style->font_desc);
+ font_desc = pango_font_description_new();
+ pango_font_description_set_weight(font_desc, PANGO_WEIGHT_BOLD);
+ pango_font_description_set_size
+ (font_desc, size * PANGO_SCALE_XX_LARGE);
}
if (font_desc)
gtk_widget_modify_font(label, font_desc);