From c7eb1aaf55c3604349a8e8735d14bcd6797ff0e8 Mon Sep 17 00:00:00 2001 From: Soeren Sandmann Date: Tue, 26 Nov 2002 01:13:27 +0000 Subject: don't offset one pixel when calculating the x position of the text. Tue Nov 26 01:55:47 2002 Soeren Sandmann * gtk/gtkprogressbar.c (gtk_progress_bar_paint_text): don't offset one pixel when calculating the x position of the text. --- gtk/gtkprogressbar.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gtk/gtkprogressbar.c') 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; -- cgit v1.2.1