summaryrefslogtreecommitdiff
path: root/pango/pangocairo-private.h
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2006-01-31 00:44:04 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2006-01-31 00:44:04 +0000
commit4c64086f6cee60fb5275b8fabf2a465212ab8420 (patch)
treed8bcf6e7ba91e91a8c8e7009a828c0c53d91cfc5 /pango/pangocairo-private.h
parent71f0113fe55447c026fb00115c552a8762bf9e91 (diff)
downloadpango-4c64086f6cee60fb5275b8fabf2a465212ab8420.tar.gz
Improve error handling in high-frequency functions: Only warn once.
2006-01-30 Behdad Esfahbod <behdad@gnome.org> * pango/shape.c (pango_shape): * pango/fonts.c (pango_font_get_glyph_extents): * pango/pangocairo-font.c (_pango_cairo_font_install): Improve error handling in high-frequency functions: Only warn once. * pango-impl-utils.h, pangoutils.h: * pangocairo-private.h, pangocairo-font.c: Add machinery for above: _pango_warning_history and _pango_cairo_warning_history.
Diffstat (limited to 'pango/pangocairo-private.h')
-rw-r--r--pango/pangocairo-private.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/pango/pangocairo-private.h b/pango/pangocairo-private.h
index 290c761c..48d3c0f3 100644
--- a/pango/pangocairo-private.h
+++ b/pango/pangocairo-private.h
@@ -103,6 +103,14 @@ void _pango_cairo_get_glyph_extents_missing (PangoCairoFont *cfont,
PangoRectangle *ink_rect,
PangoRectangle *logical_rect);
+typedef struct _PangoCairoWarningHistory PangoCairoWarningHistory;
+
+struct _PangoCairoWarningHistory {
+ guint font_install : 1;
+};
+
+extern PangoCairoWarningHistory _pango_cairo_warning_history;
+
G_END_DECLS
#endif /* __PANGOCAIRO_PRIVATE_H__ */