diff options
author | Alexander Larsson <alexl@redhat.com> | 2013-02-26 10:46:28 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2013-02-26 10:49:55 +0100 |
commit | c5f43d1869373d9e05588c9a13841b5416583e29 (patch) | |
tree | da3b0a3e3066178abd7d7534d34a82f46dcd35c5 /pango/pango-fontmap.c | |
parent | 6de9b3b340e30856daefc418dc59545afbe62bf0 (diff) | |
download | pango-c5f43d1869373d9e05588c9a13841b5416583e29.tar.gz |
Add pango_font_map_changed()
This is needed as a base class sometimes needs to invalidate
the fontmap.
https://bugzilla.gnome.org/show_bug.cgi?id=694626
Diffstat (limited to 'pango/pango-fontmap.c')
-rw-r--r-- | pango/pango-fontmap.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/pango/pango-fontmap.c b/pango/pango-fontmap.c index e1d6bb0f..83a0c75a 100644 --- a/pango/pango-fontmap.c +++ b/pango/pango-fontmap.c @@ -314,3 +314,26 @@ pango_font_map_get_serial (PangoFontMap *fontmap) else return 1; } + +/** + * pango_font_map_changed: + * @fontmap: a #PangoFontMap + * + * Forces a change in the context, which will cause any #PangoContext + * using this fontmap to change. + * + * This function is only useful when implementing a new backend + * for Pango, something applications won't do. Backends should + * call this function if they have attached extra data to the context + * and such data is changed. + * + * Since: 1.34.0 + **/ +void +pango_font_map_changed (PangoFontMap *fontmap) +{ + g_return_if_fail (PANGO_IS_FONT_MAP (fontmap)); + + if (PANGO_FONT_MAP_GET_CLASS (fontmap)->changed) + return PANGO_FONT_MAP_GET_CLASS (fontmap)->changed (fontmap); +} |