[gtk+] Stop using gdk_pango_get_context_for_display



commit 0cd88cd6b779b9f8ff8915a39cd80728d2f1247b
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Oct 31 17:52:24 2017 -0400

    Stop using gdk_pango_get_context_for_display
    
    The function does nothing useful for us.

 gtk/gtkwidget.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 9fd3158..084999f 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 ());
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]