Use _static variants when copying and merging short-lived Pango layouts.
2006-04-28 Matthias Clasen <mclasen@redhat.com> * gtk/gtkcellrenderertext.c (get_size): Use _static variants when copying and merging short-lived Pango layouts. (#340033, Morten Welinder)
This commit is contained in:

committed by
Matthias Clasen

parent
0bce92f67d
commit
6162f9d51a
@ -1497,8 +1497,8 @@ get_size (GtkCellRenderer *cell,
|
||||
PangoFontDescription *font_desc;
|
||||
gint row_height;
|
||||
|
||||
font_desc = pango_font_description_copy (widget->style->font_desc);
|
||||
pango_font_description_merge (font_desc, celltext->font, TRUE);
|
||||
font_desc = pango_font_description_copy_static (widget->style->font_desc);
|
||||
pango_font_description_merge_static (font_desc, celltext->font, TRUE);
|
||||
|
||||
if (celltext->scale_set)
|
||||
pango_font_description_set_size (font_desc,
|
||||
|
Reference in New Issue
Block a user