diff options
author | Soeren Sandmann <sandmann@daimi.au.dk> | 2002-11-26 01:13:27 +0000 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@src.gnome.org> | 2002-11-26 01:13:27 +0000 |
commit | c7eb1aaf55c3604349a8e8735d14bcd6797ff0e8 (patch) | |
tree | 606a9e8ce1856ec32224a4949a323b76d55436a0 /gtk/gtkprogressbar.c | |
parent | e6107bc236fc60f8e663d6ae9d8d52c95631dc3e (diff) | |
download | gtk+-c7eb1aaf55c3604349a8e8735d14bcd6797ff0e8.tar.gz |
don't offset one pixel when calculating the x position of the text.
Tue Nov 26 01:55:47 2002 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtkprogressbar.c (gtk_progress_bar_paint_text): don't offset
one pixel when calculating the x position of the text.
Diffstat (limited to 'gtk/gtkprogressbar.c')
-rw-r--r-- | gtk/gtkprogressbar.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkprogressbar.c b/gtk/gtkprogressbar.c index 94aefc1049..b679722b85 100644 --- a/gtk/gtkprogressbar.c +++ b/gtk/gtkprogressbar.c @@ -738,14 +738,14 @@ gtk_progress_bar_paint_text (GtkProgressBar *pbar, layout = gtk_widget_create_pango_layout (widget, buf); pango_layout_get_pixel_extents (layout, NULL, &logical_rect); - x = widget->style->xthickness + 1 + + x = widget->style->xthickness + 1 + (widget->allocation.width - 2 * widget->style->xthickness - - 3 - logical_rect.width) + 2 - logical_rect.width) * progress->x_align; y = widget->style->ythickness + 1 + (widget->allocation.height - 2 * widget->style->ythickness - - 3 - logical_rect.height) + 2 - logical_rect.height) * progress->y_align; rect.x = widget->style->xthickness; |