summaryrefslogtreecommitdiff
path: root/pango-view/viewer-pangox.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango-view/viewer-pangox.c')
-rw-r--r--pango-view/viewer-pangox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango-view/viewer-pangox.c b/pango-view/viewer-pangox.c
index f4ea9d29..f48081a7 100644
--- a/pango-view/viewer-pangox.c
+++ b/pango-view/viewer-pangox.c
@@ -42,7 +42,7 @@ pangox_view_get_context (gpointer instance)
PangoContext *context;
PangoMatrix matrix = {0., 0., 0., 0., 0., 0.};
- context = pango_x_get_context (x->display);
+ context = pango_font_map_create_context (pango_x_font_map_for_display (x->display));
/* We set an all-zero matrix on the context, to negotiate that
* this backend doesn't support transformations.