summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2019-03-08 14:12:17 +0100
committerBenjamin Otte <otte@redhat.com>2019-03-08 14:12:17 +0100
commit3863e44360a4befcd1c37fffc27c01f5ece9d793 (patch)
treed895e0cfda353d75f017df69eddb06cc990ba6ae
parent8566218485f28b69bfee9be603de962d6dfc83b1 (diff)
downloadgtk+-3863e44360a4befcd1c37fffc27c01f5ece9d793.tar.gz
text: Simplify
The previous arguments were equivalent to using NULL.
-rw-r--r--gtk/gtktext.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk/gtktext.c b/gtk/gtktext.c
index 6dd9ecac49..99a5afba37 100644
--- a/gtk/gtktext.c
+++ b/gtk/gtktext.c
@@ -2054,9 +2054,7 @@ gtk_text_measure (GtkWidget *widget,
PangoFontMetrics *metrics;
context = gtk_widget_get_pango_context (widget);
- metrics = pango_context_get_metrics (context,
- pango_context_get_font_description (context),
- pango_context_get_language (context));
+ metrics = pango_context_get_metrics (context, NULL, NULL);
if (orientation == GTK_ORIENTATION_HORIZONTAL)
{