From 6e14da5c593d08a8edf1155cd4378c889425c423 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 1 Oct 2007 07:21:43 +0000 Subject: 2007-10-01 mcrha Fix for bug #474557 svn path=/trunk/; revision=34336 --- widgets/table/ChangeLog | 7 +++++++ widgets/table/e-table-group-container.c | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) (limited to 'widgets') diff --git a/widgets/table/ChangeLog b/widgets/table/ChangeLog index 83b5b455da..c360875b85 100644 --- a/widgets/table/ChangeLog +++ b/widgets/table/ChangeLog @@ -1,3 +1,10 @@ +2007-10-01 Milan Crha + + ** Fix for bug #474557 + + * e-table-group-container.c: (etgc_reflow): + Choose right widget and use PANGO_PIXELS to calculate height. + 2007-09-27 Hiroyuki Ikezoe ** Fix for bug #461195 diff --git a/widgets/table/e-table-group-container.c b/widgets/table/e-table-group-container.c index d399c29824..ea5600760a 100644 --- a/widgets/table/e-table-group-container.c +++ b/widgets/table/e-table-group-container.c @@ -1009,11 +1009,11 @@ etgc_reflow (GnomeCanvasItem *item, gint flags) PangoContext *context; PangoFontMetrics *metrics; - context = gtk_widget_get_pango_context (GTK_WIDGET (etgc)); + context = gtk_widget_get_pango_context (GTK_WIDGET (item->canvas)); metrics = pango_context_get_metrics (context, etgc->font_desc, NULL); extra_height += - pango_font_metrics_get_ascent (metrics) + - pango_font_metrics_get_descent (metrics) + + PANGO_PIXELS (pango_font_metrics_get_ascent (metrics)) + + PANGO_PIXELS (pango_font_metrics_get_descent (metrics)) + BUTTON_PADDING * 2; pango_font_metrics_unref (metrics); } -- cgit v1.2.3