[gtk+] tests: Stop using gdk_pango_context_get.



commit ffb3bc438e839ec0d4d25da7462d0e09756fdacd
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Oct 30 21:35:48 2017 -0400

    tests: Stop using gdk_pango_context_get.
    
    We can just as well get the display ourselves.

 tests/rendernode-create-tests.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/rendernode-create-tests.c b/tests/rendernode-create-tests.c
index 013188e..7990824 100644
--- a/tests/rendernode-create-tests.c
+++ b/tests/rendernode-create-tests.c
@@ -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");


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