aboutsummaryrefslogtreecommitdiff
path: root/src/alertpanel.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-01-24 10:55:09 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-01-24 10:55:09 +0000
commitd97b4ce5ed25db02c5488c23bfdfa96ea3f5acd8 (patch)
treea6a8f2f1455f6d589938c20c005ca59355d14a92 /src/alertpanel.c
parent21fb7010272990c1f9a9e0fdd09e3bae48855a12 (diff)
alertpanel.c: generate title font from normal font.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@38 ee746299-78ed-0310-b773-934348b2243d
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);