summaryrefslogtreecommitdiff
path: root/pango/pangoft2.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2011-10-12 18:33:03 -0400
committerMatthias Clasen <mclasen@redhat.com>2011-10-13 13:52:08 -0400
commit0e091322c494b1523617ca7488ea22e58f8a2c13 (patch)
tree394ed6a355c52ed4e9e19683eb3537ef26cae307 /pango/pangoft2.h
parentc403250103234ad09cd90e3e8a9ea838ce82d72e (diff)
downloadpango-0e091322c494b1523617ca7488ea22e58f8a2c13.tar.gz
Add deprecation attributes to deprecated functions
This is using the newly introduce G_DEPRECATED macros from GLib. Traditional deprecation guards are still in place. https://bugzilla.gnome.org/show_bug.cgi?id=661612
Diffstat (limited to 'pango/pangoft2.h')
-rw-r--r--pango/pangoft2.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/pango/pangoft2.h b/pango/pangoft2.h
index e43e2e42..d2ba13dd 100644
--- a/pango/pangoft2.h
+++ b/pango/pangoft2.h
@@ -86,6 +86,7 @@ void pango_ft2_font_map_set_default_substitute (PangoFT2FontMap
GDestroyNotify notify);
void pango_ft2_font_map_substitute_changed (PangoFT2FontMap *fontmap);
#ifndef PANGO_DISABLE_DEPRECATED
+G_DEPRECATED_FOR(pango_font_map_create_context)
PangoContext *pango_ft2_font_map_create_context (PangoFT2FontMap *fontmap);
#endif
@@ -93,16 +94,23 @@ PangoContext *pango_ft2_font_map_create_context (PangoFT2FontMap
/* API for rendering modules
*/
#ifndef PANGO_DISABLE_DEPRECATED
+G_DEPRECATED_FOR(pango_font_map_create_context)
PangoContext *pango_ft2_get_context (double dpi_x,
double dpi_y);
+G_DEPRECATED_FOR(pango_ft2_font_map_new)
PangoFontMap *pango_ft2_font_map_for_display (void);
+G_DEPRECATED
void pango_ft2_shutdown_display (void);
+G_DEPRECATED_FOR(PANGO_GET_UNKNOWN_GLYPH)
PangoGlyph pango_ft2_get_unknown_glyph (PangoFont *font);
+G_DEPRECATED_FOR(pango_fc_font_kern_glyphs)
int pango_ft2_font_get_kerning (PangoFont *font,
PangoGlyph left,
PangoGlyph right);
+G_DEPRECATED_FOR(pango_fc_font_lock_face)
FT_Face pango_ft2_font_get_face (PangoFont *font);
+G_DEPRECATED_FOR(pango_font_get_coverage)
PangoCoverage *pango_ft2_font_get_coverage (PangoFont *font,
PangoLanguage *language);
#endif /* PANGO_DISABLE_DEPRECATED */