mirror of
https://github.com/brl/mutter.git
synced 2024-12-27 21:32:14 +00:00
cogl/pango: Remove no longer needed version check
We require pango 1.46 nowadays Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3491>
This commit is contained in:
parent
f20cb09f34
commit
3fcff05847
@ -88,13 +88,7 @@ cogl_pango_font_map_create_context (CoglPangoFontMap *fm)
|
|||||||
{
|
{
|
||||||
g_return_val_if_fail (COGL_PANGO_IS_FONT_MAP (fm), NULL);
|
g_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));
|
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 *
|
static CoglPangoFontMapPriv *
|
||||||
|
Loading…
Reference in New Issue
Block a user