forked from AuroraMiddleware/gtk
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.
This commit is contained in:
parent
e6107bc236
commit
c7eb1aaf55
@ -1,3 +1,8 @@
|
||||
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.
|
||||
|
||||
Tue Nov 26 00:40:53 2002 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* gtk/gtkprogressbar.c (gtk_progress_bar_paint_text): draw text
|
||||
|
@ -1,3 +1,8 @@
|
||||
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.
|
||||
|
||||
Tue Nov 26 00:40:53 2002 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* gtk/gtkprogressbar.c (gtk_progress_bar_paint_text): draw text
|
||||
|
@ -1,3 +1,8 @@
|
||||
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.
|
||||
|
||||
Tue Nov 26 00:40:53 2002 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* gtk/gtkprogressbar.c (gtk_progress_bar_paint_text): draw text
|
||||
|
@ -1,3 +1,8 @@
|
||||
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.
|
||||
|
||||
Tue Nov 26 00:40:53 2002 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* gtk/gtkprogressbar.c (gtk_progress_bar_paint_text): draw text
|
||||
|
@ -1,3 +1,8 @@
|
||||
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.
|
||||
|
||||
Tue Nov 26 00:40:53 2002 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* gtk/gtkprogressbar.c (gtk_progress_bar_paint_text): draw text
|
||||
|
@ -1,3 +1,8 @@
|
||||
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.
|
||||
|
||||
Tue Nov 26 00:40:53 2002 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* gtk/gtkprogressbar.c (gtk_progress_bar_paint_text): draw text
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user