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:
Matthias Clasen
2008-05-26 04:33:25 +00:00
parent 9ec6a65901
commit f7f1dabdf9
4 changed files with 14 additions and 4 deletions

View File

@ -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;