From 6d09205d5d4fddba941f7d26ba70e15edcf4ae42 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Mon, 27 Jan 2003 17:01:45 +0000 Subject: (timeout_callback): Pass a the context's language to pango_context_get_metrics() instead of NULL, so the heights are computed correctly. svn path=/trunk/; revision=19651 --- shell/e-shell-about-box.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shell/e-shell-about-box.c') diff --git a/shell/e-shell-about-box.c b/shell/e-shell-about-box.c index 421331b4d8..be313941fd 100644 --- a/shell/e-shell-about-box.c +++ b/shell/e-shell-about-box.c @@ -160,7 +160,7 @@ timeout_callback (void *data) context = gtk_widget_get_pango_context (widget); metrics = pango_context_get_metrics (context, gtk_widget_get_style (GTK_WIDGET (about_box))->font_desc, - NULL); + pango_context_get_language (context)); line_height = PANGO_PIXELS (pango_font_metrics_get_ascent (metrics) + pango_font_metrics_get_descent (metrics)); pango_font_metrics_unref (metrics); -- cgit v1.2.3