[gtk/wip/otte/whatamidoing: 2/3] text: Simplify
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/whatamidoing: 2/3] text: Simplify
- Date: Fri, 8 Mar 2019 14:00:10 +0000 (UTC)
commit 3863e44360a4befcd1c37fffc27c01f5ece9d793
Author: Benjamin Otte <otte redhat com>
Date: Fri Mar 8 14:12:17 2019 +0100
text: Simplify
The previous arguments were equivalent to using NULL.
gtk/gtktext.c | 4 +---
1 file changed, 1 insertion(+), 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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]