aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/text
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2003-01-18 07:23:47 +0800
committerChris Toshok <toshok@src.gnome.org>2003-01-18 07:23:47 +0800
commitfdabee2040637d8ed03f4dd807d0e40a0116630b (patch)
treef53dadb5f592c0a3308414fa07bfa0ae972e9852 /widgets/text
parent673b33651451e83c367dcb78c6f6c01877f8e6d3 (diff)
downloadgsoc2013-evolution-fdabee2040637d8ed03f4dd807d0e40a0116630b.tar
gsoc2013-evolution-fdabee2040637d8ed03f4dd807d0e40a0116630b.tar.gz
gsoc2013-evolution-fdabee2040637d8ed03f4dd807d0e40a0116630b.tar.bz2
gsoc2013-evolution-fdabee2040637d8ed03f4dd807d0e40a0116630b.tar.lz
gsoc2013-evolution-fdabee2040637d8ed03f4dd807d0e40a0116630b.tar.xz
gsoc2013-evolution-fdabee2040637d8ed03f4dd807d0e40a0116630b.tar.zst
gsoc2013-evolution-fdabee2040637d8ed03f4dd807d0e40a0116630b.zip
pass pango_context_get_language to pango_context_get_metrics.
2003-01-17 Chris Toshok <toshok@ximian.com> * gal/e-text/e-entry.c (canvas_size_request): pass pango_context_get_language to pango_context_get_metrics. svn path=/trunk/; revision=19507
Diffstat (limited to 'widgets/text')
-rw-r--r--widgets/text/e-entry.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/widgets/text/e-entry.c b/widgets/text/e-entry.c
index 06826a42d5..a297f1d26a 100644
--- a/widgets/text/e-entry.c
+++ b/widgets/text/e-entry.c
@@ -201,7 +201,8 @@ canvas_size_request (GtkWidget *widget, GtkRequisition *requisition,
d(g_print("%s: width = %d\n", __FUNCTION__, requisition->width));
context = gtk_widget_get_pango_context (widget);
- metrics = pango_context_get_metrics (context, gtk_widget_get_style (widget)->font_desc, NULL);
+ metrics = pango_context_get_metrics (context, gtk_widget_get_style (widget)->font_desc,
+ pango_context_get_language (context));
requisition->height = (2 +
PANGO_PIXELS (pango_font_metrics_get_ascent (metrics) +