summaryrefslogtreecommitdiff
path: root/pango/pangox.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/pangox.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/pangox.h')
-rw-r--r--pango/pangox.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/pango/pangox.h b/pango/pangox.h
index dc41b61e..f708ed1f 100644
--- a/pango/pangox.h
+++ b/pango/pangox.h
@@ -39,13 +39,17 @@ typedef void (*PangoFreeGCFunc) (PangoContext *context, GC gc);
/* Calls for applications
*/
+G_DEPRECATED
PangoContext * pango_x_get_context (Display *display);
+G_DEPRECATED
void pango_x_context_set_funcs (PangoContext *context,
PangoGetGCFunc get_gc_func,
PangoFreeGCFunc free_gc_func);
+G_DEPRECATED
PangoFont * pango_x_load_font (Display *display,
const gchar *spec);
+G_DEPRECATED
void pango_x_render (Display *display,
Drawable d,
GC gc,
@@ -53,12 +57,14 @@ void pango_x_render (Display *display,
PangoGlyphString *glyphs,
gint x,
gint y);
+G_DEPRECATED
void pango_x_render_layout_line (Display *display,
Drawable drawable,
GC gc,
PangoLayoutLine *line,
int x,
int y);
+G_DEPRECATED
void pango_x_render_layout (Display *display,
Drawable drawable,
GC gc,
@@ -74,16 +80,20 @@ typedef guint16 PangoXSubfont;
#define PANGO_X_GLYPH_SUBFONT(glyph) ((glyph)>>16)
#define PANGO_X_GLYPH_INDEX(glyph) ((glyph) & 0xffff)
+G_DEPRECATED
int pango_x_list_subfonts (PangoFont *font,
char **charsets,
int n_charsets,
PangoXSubfont **subfont_ids,
int **subfont_charsets);
+G_DEPRECATED
gboolean pango_x_has_glyph (PangoFont *font,
PangoGlyph glyph);
+G_DEPRECATED
PangoGlyph pango_x_get_unknown_glyph (PangoFont *font);
#ifdef PANGO_ENABLE_ENGINE
+G_DEPRECATED
PangoGlyph pango_x_font_get_unknown_glyph (PangoFont *font,
gunichar wc);
#endif /* PANGO_ENABLE_ENGINE */
@@ -92,32 +102,43 @@ PangoGlyph pango_x_font_get_unknown_glyph (PangoFont *font,
*/
typedef struct _PangoXFontCache PangoXFontCache;
+G_DEPRECATED
PangoXFontCache *pango_x_font_cache_new (Display *display);
+G_DEPRECATED
void pango_x_font_cache_free (PangoXFontCache *cache);
+G_DEPRECATED
XFontStruct * pango_x_font_cache_load (PangoXFontCache *cache,
const char *xlfd);
+G_DEPRECATED
void pango_x_font_cache_unload (PangoXFontCache *cache,
XFontStruct *fs);
+G_DEPRECATED
PangoFontMap * pango_x_font_map_for_display (Display *display);
+G_DEPRECATED
void pango_x_shutdown_display (Display *display);
+G_DEPRECATED
PangoXFontCache *pango_x_font_map_get_font_cache (PangoFontMap *font_map);
+G_DEPRECATED
char *pango_x_font_subfont_xlfd (PangoFont *font,
PangoXSubfont subfont_id);
+G_DEPRECATED
gboolean pango_x_find_first_subfont (PangoFont *font,
char **charsets,
int n_charsets,
PangoXSubfont *rfont);
+G_DEPRECATED
void pango_x_fallback_shape (PangoFont *font,
PangoGlyphString *glyphs,
const char *text,
int n_chars);
+G_DEPRECATED
gboolean pango_x_apply_ligatures (PangoFont *font,
PangoXSubfont subfont,
gunichar **glyphs,