From d97b4ce5ed25db02c5488c23bfdfa96ea3f5acd8 Mon Sep 17 00:00:00 2001 From: hiro Date: Mon, 24 Jan 2005 10:55:09 +0000 Subject: alertpanel.c: generate title font from normal font. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@38 ee746299-78ed-0310-b773-934348b2243d --- ChangeLog | 5 +++++ ChangeLog.ja | 5 +++++ src/alertpanel.c | 11 +++++++---- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index f5af7d4c..82cd8a5b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-01-24 + + * src/alertpanel.c: alertpanel_create(): generate title font from + normal font. + 2005-01-24 * src/pop.c: pop3_get_uidl_table(): removed the old code for diff --git a/ChangeLog.ja b/ChangeLog.ja index 4024d241..22174953 100644 --- a/ChangeLog.ja +++ b/ChangeLog.ja @@ -1,3 +1,8 @@ +2005-01-24 + + * src/alertpanel.c: alertpanel_create(): タイトルフォントを通常の + フォントから生成するようにした。 + 2005-01-24 * src/pop.c: pop3_get_uidl_table(): 移行用の古いコードを削除。 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); -- cgit v1.2.3