diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-01-25 08:21:20 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-01-25 08:21:20 +0000 |
commit | 80ce4c1f69c088289c3c67408c820a03d0b04055 (patch) | |
tree | 29890de80367bd066e731075d7be5965b0d43c22 /src/folderview.c | |
parent | d97b4ce5ed25db02c5488c23bfdfa96ea3f5acd8 (diff) |
improved font management.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@39 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/folderview.c')
-rw-r--r-- | src/folderview.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/folderview.c b/src/folderview.c index b2b6210a..ef9a2e3f 100644 --- a/src/folderview.c +++ b/src/folderview.c @@ -416,16 +416,9 @@ void folderview_init(FolderView *folderview) stock_pixmap_gdk(ctree, STOCK_PIXMAP_TRASH, &trashxpm, &trashxpmmask); if (!bold_style) { - PangoFontDescription *font_desc; bold_style = gtk_style_copy(gtk_widget_get_style(ctree)); - font_desc = pango_font_description_from_string - (prefs_common.boldfont); - if (font_desc) { - if (bold_style->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); bold_color_style = gtk_style_copy(bold_style); bold_color_style->fg[GTK_STATE_NORMAL] = folderview->color_new; } |