From 40750b5152ceb5dea950f96f5880e4e72404a81f Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Thu, 7 Dec 2006 15:56:03 +0000 Subject: [PATCH] do not use xthickness/ythickness, they aren't used any longer for drawing. 2006-12-07 Carlos Garnacho * gtk/gtkcellrendererprogress (compute_dimensions): do not use xthickness/ythickness, they aren't used any longer for drawing. --- ChangeLog | 5 +++++ gtk/gtkcellrendererprogress.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2d98abb456..0a7139172e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-12-07 Carlos Garnacho + + * gtk/gtkcellrendererprogress (compute_dimensions): do not use + xthickness/ythickness, they aren't used any longer for drawing. + 2006-12-07 Matthias Clasen * gtk/gtkrc.c (_gtk_rc_init): Fix clipping of accelerator diff --git a/gtk/gtkcellrendererprogress.c b/gtk/gtkcellrendererprogress.c index 0e4a13d238..ce930e5225 100644 --- a/gtk/gtkcellrendererprogress.c +++ b/gtk/gtkcellrendererprogress.c @@ -269,11 +269,11 @@ compute_dimensions (GtkCellRenderer *cell, pango_layout_get_pixel_extents (layout, NULL, &logical_rect); if (width) - *width = logical_rect.width + cell->xpad * 2 + widget->style->xthickness * 2; + *width = logical_rect.width + cell->xpad * 2; if (height) - *height = logical_rect.height + cell->ypad * 2 + widget->style->ythickness * 2; - + *height = logical_rect.height + cell->ypad * 2; + g_object_unref (layout); }