From 0cd88cd6b779b9f8ff8915a39cd80728d2f1247b Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 31 Oct 2017 17:52:24 -0400 Subject: [PATCH] Stop using gdk_pango_get_context_for_display The function does nothing useful for us. --- gtk/gtkwidget.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 9fd31587e9..084999f178 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -9044,13 +9044,11 @@ gtk_widget_get_font_map (GtkWidget *widget) PangoContext * gtk_widget_create_pango_context (GtkWidget *widget) { - GdkDisplay *display; PangoContext *context; g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL); - display = gtk_widget_get_display (widget); - context = gdk_pango_context_get_for_display (display); + context = pango_font_map_create_context (pango_cairo_font_map_get_default ()); update_pango_context (widget, context); pango_context_set_language (context, gtk_get_default_language ());