Bug 511163 – Remove pango_extents_to_pixels() calls
* gtk/gtkcellrenderertext.c (get_size): Use
pango_layout_get_pixel_extents.
* configure.in: Bump Pango requirement to 1.20
* INSTALL.in: Update required versions
svn path=/trunk/; revision=20171
This commit is contained in:
@ -1539,8 +1539,7 @@ get_size (GtkCellRenderer *cell,
|
||||
else
|
||||
layout = get_layout (celltext, widget, FALSE, 0);
|
||||
|
||||
pango_layout_get_extents (layout, NULL, &rect);
|
||||
pango_extents_to_pixels (&rect, NULL);
|
||||
pango_layout_get_pixel_extents (layout, NULL, &rect);
|
||||
|
||||
if (height)
|
||||
*height = cell->ypad * 2 + rect.height;
|
||||
|
||||
Reference in New Issue
Block a user