mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 08:00:42 -05:00
pango: Conditionally use deprecated API
When compiling against a newer version of Pango we can avoid the deprecation warning.
This commit is contained in:
parent
838355afbd
commit
9ab320cd3d
@ -98,9 +98,13 @@ cogl_pango_font_map_create_context (CoglPangoFontMap *fm)
|
||||
{
|
||||
_COGL_RETURN_VAL_IF_FAIL (COGL_PANGO_IS_FONT_MAP (fm), NULL);
|
||||
|
||||
#if PANGO_VERSION_CHECK (1, 22, 0)
|
||||
/* We can just directly use the pango context from the Cairo font
|
||||
map */
|
||||
return pango_font_map_create_context (PANGO_FONT_MAP (fm));
|
||||
#else
|
||||
return pango_cairo_font_map_create_context (PANGO_CAIRO_FONT_MAP (fm));
|
||||
#endif
|
||||
}
|
||||
|
||||
static CoglPangoFontMapPriv *
|
||||
|
Loading…
Reference in New Issue
Block a user