summaryrefslogtreecommitdiff
path: root/pango/pango-context.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2016-08-29 08:50:38 -0400
committerMatthias Clasen <mclasen@redhat.com>2016-08-29 08:51:18 -0400
commit6cc857aa6648b17e70b1b2b13a4e8b7a74a4a240 (patch)
tree48c686f585241b09a89ea195c52b4e766c9acb7f /pango/pango-context.c
parentcce034fea4187ce02577dbc6d92c8b1042aca815 (diff)
downloadpango-6cc857aa6648b17e70b1b2b13a4e8b7a74a4a240.tar.gz
Avoid deprecation warnings
Now that we're using new-style deprecations, we have to fight a little harder to get rid of them inside pango.
Diffstat (limited to 'pango/pango-context.c')
-rw-r--r--pango/pango-context.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pango/pango-context.c b/pango/pango-context.c
index 0344e334..f91d0fe6 100644
--- a/pango/pango-context.c
+++ b/pango/pango-context.c
@@ -1433,9 +1433,11 @@ itemize_state_process_run (ItemizeState *state)
if (!g_object_get_data (G_OBJECT (fontmap), script_name))
{
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
g_warning ("failed to choose a font, expect ugly output. engine-type='%s', script='%s'",
pango_font_map_get_shape_engine_type (fontmap),
script_name);
+G_GNUC_END_IGNORE_DEPRECATIONS
g_object_set_data_full (G_OBJECT (fontmap), script_name,
GINT_TO_POINTER (1), NULL);