kwo pushed a commit to branch master.

http://git.enlightenment.org/e16/e16.git/commit/?id=cafd8672e6941cee6886cc1f4a07ea57a8705212

commit cafd8672e6941cee6886cc1f4a07ea57a8705212
Author: Kim Woelders <[email protected]>
Date:   Fri Nov 25 17:38:26 2016 +0100

    Fix warning with recent pango.
    
    pango_xft_get_context() is deprecated.
---
 src/text_pango.c | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/src/text_pango.c b/src/text_pango.c
index 35a486b..0c4885a 100644
--- a/src/text_pango.c
+++ b/src/text_pango.c
@@ -49,13 +49,19 @@ static int
 _pango_xft_Load(TextState * ts, const char *name)
 {
    FontCtxPangoXft    *fdc;
+   PangoFontMap       *fmap;
    PangoFontDescription *font;
    PangoFontMask       flags;
 
    if (!_pango_ctx)
-      _pango_ctx = pango_xft_get_context(disp, Dpy.screen);
-   if (!_pango_ctx)
-      return -1;
+     {
+       fmap = pango_xft_get_font_map(disp, Dpy.screen);
+       if (!fmap)
+          return -1;
+       _pango_ctx = pango_font_map_create_context(fmap);
+       if (!_pango_ctx)
+          return -1;
+     }
 
    font = pango_font_description_from_string(name);
    if (!font)

-- 


Reply via email to