Fix offset to center the underline in requested rectangle. (Ported from

2006-05-30  Behdad Esfahbod  <behdad@gnome.org>

        * gdk/gdkpango.c (draw_error_underline): Fix offset to center the
        underline in requested rectangle. (Ported from pango fix.)
This commit is contained in:
Behdad Esfahbod 2006-05-30 04:19:29 +00:00 committed by Behdad Esfahbod
parent 743c6be7e4
commit 416b66f3ab
3 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-05-30 Behdad Esfahbod <behdad@gnome.org>
* gdk/gdkpango.c (draw_error_underline): Fix offset to center the
underline in requested rectangle. (Ported from pango fix.)
2006-05-29 Michael Natterer <mitch@imendio.com>
* gtk/gtkdialog.h: removed forgotten declaration of

View File

@ -1,3 +1,8 @@
2006-05-30 Behdad Esfahbod <behdad@gnome.org>
* gdk/gdkpango.c (draw_error_underline): Fix offset to center the
underline in requested rectangle. (Ported from pango fix.)
2006-05-29 Michael Natterer <mitch@imendio.com>
* gtk/gtkdialog.h: removed forgotten declaration of

View File

@ -278,7 +278,7 @@ draw_error_underline (cairo_t *cr,
double y_top, y_bottom;
int i;
x += (width - width_units * unit_width);
x += (width - width_units * unit_width) / 2;
width = width_units * unit_width;
y_top = y;