summaryrefslogtreecommitdiff
path: root/gtk/gtkwindow.h
diff options
context:
space:
mode:
authorKristian Rietveld <kris@gtk.org>2010-12-23 18:41:23 +0100
committerKristian Rietveld <kris@gtk.org>2010-12-23 18:41:23 +0100
commit9ab2786991db56f49ec7eaff20118734c03470b2 (patch)
treef3059a37a408bf470fd05e1823094acc1c325eeb /gtk/gtkwindow.h
parent31536736ea0fe25056689b9b7ccd914910281b37 (diff)
downloadgtk+-9ab2786991db56f49ec7eaff20118734c03470b2.tar.gz
GtkCellRendererText: use PANGO_PIXELS_CEIL for text_width
Usually pango_layout_get_pixel_extents() is used, which uses PANGO_PIXELS_CEIL on the rectangle's width. This commit makes the new function gtk_cell_renderer_text_get_preferred_width() consistent with this. This fixes rounding errors on Mac OS X, where we were seeing tree views with a double height for a single line of text, while the usual single row height would have been sufficient.
Diffstat (limited to 'gtk/gtkwindow.h')
0 files changed, 0 insertions, 0 deletions