tests: Stop using gdk_pango_context_get.
authorMatthias Clasen <mclasen@redhat.com>
Tue, 31 Oct 2017 01:35:48 +0000 (21:35 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 31 Oct 2017 01:35:48 +0000 (21:35 -0400)
We can just as well get the display ourselves.

tests/rendernode-create-tests.c

index 013188ea65913a07db492c951f0edb623e47c5a6..7990824ae4861358234792d59d3acda662a7ddcb 100644 (file)
@@ -364,7 +364,7 @@ text (guint n)
   PangoLayout *layout;
   int i;
 
-  context = gdk_pango_context_get ();
+  context = gdk_pango_context_get_for_display (gdk_display_get_default ());
 
   desc = pango_font_description_new ();
   pango_font_description_set_family (desc, "Cantarell");