diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2008-05-26 04:33:25 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2008-05-26 04:33:25 +0000 |
commit | f7f1dabdf94aee014b6bbea9fb8415d4057d72d6 (patch) | |
tree | 18b2871daa34f397dc2ccdab7de437b40b89f632 /gtk | |
parent | 9ec6a65901aa1e4a494c09341f5a6ffbed8a8415 (diff) | |
download | gtk+-f7f1dabdf94aee014b6bbea9fb8415d4057d72d6.tar.gz |
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
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkcellrenderertext.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk/gtkcellrenderertext.c b/gtk/gtkcellrenderertext.c index fefcabbffd..ee3357cd42 100644 --- a/gtk/gtkcellrenderertext.c +++ b/gtk/gtkcellrenderertext.c @@ -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; |