(#67542, reported by Anders Carlsson)

Wed Dec 26 11:49:01 2001  Owen Taylor  <otaylor@redhat.com>

        (#67542, reported by Anders Carlsson)

        * gtk/gtkstyle.c (gtk_style_real_init_from_rc): Merge
        rc_style->font_desc with defaul style instead of replacing
        it.

        * gtk/gtkrc.c (gtk_rc_style_real_merge): Allow partial
        font descriptions in RC styles by calling
        pango_font_description_merge().
This commit is contained in:
Owen Taylor
2001-12-26 17:06:13 +00:00
committed by Owen Taylor
parent 9ad1895548
commit e1033f5f5a
9 changed files with 92 additions and 6 deletions

View File

@ -1239,10 +1239,7 @@ gtk_style_real_init_from_rc (GtkStyle *style,
clear_property_cache (style);
if (rc_style->font_desc)
{
pango_font_description_free (style->font_desc);
style->font_desc = pango_font_description_copy (rc_style->font_desc);
}
pango_font_description_merge (style->font_desc, rc_style->font_desc, TRUE);
for (i = 0; i < 5; i++)
{