mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
do not use xthickness/ythickness, they aren't used any longer for drawing.
2006-12-07 Carlos Garnacho <carlosg@gnome.org> * gtk/gtkcellrendererprogress (compute_dimensions): do not use xthickness/ythickness, they aren't used any longer for drawing.
This commit is contained in:
parent
88d742d937
commit
40750b5152
@ -1,3 +1,8 @@
|
||||
2006-12-07 Carlos Garnacho <carlosg@gnome.org>
|
||||
|
||||
* gtk/gtkcellrendererprogress (compute_dimensions): do not use
|
||||
xthickness/ythickness, they aren't used any longer for drawing.
|
||||
|
||||
2006-12-07 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkrc.c (_gtk_rc_init): Fix clipping of accelerator
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user