aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-rw-r--r--widgets/table/ChangeLog7
-rw-r--r--widgets/table/e-table-group-container.c6
2 files changed, 10 insertions, 3 deletions
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 <mcrha@redhat.com>
+
+ ** 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 <poincare@ikezoe.net>
** 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);
}