diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2006-01-31 00:44:04 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2006-01-31 00:44:04 +0000 |
commit | 4c64086f6cee60fb5275b8fabf2a465212ab8420 (patch) | |
tree | d8bcf6e7ba91e91a8c8e7009a828c0c53d91cfc5 /pango/pango-impl-utils.h | |
parent | 71f0113fe55447c026fb00115c552a8762bf9e91 (diff) | |
download | pango-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/pango-impl-utils.h')
-rw-r--r-- | pango/pango-impl-utils.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pango/pango-impl-utils.h b/pango/pango-impl-utils.h index 7dabeb47..7e1d3136 100644 --- a/pango/pango-impl-utils.h +++ b/pango/pango-impl-utils.h @@ -72,6 +72,18 @@ prefix ## _get_type (void) \ class_init, instance_init, \ parent_type, G_TYPE_FLAG_ABSTRACT) + + +typedef struct _PangoWarningHistory PangoWarningHistory; + +struct _PangoWarningHistory { + guint shape_font : 1; + guint shape_shape_engine : 1; + guint get_glyph_extents : 1; +}; + +extern PangoWarningHistory _pango_warning_history; + G_END_DECLS #endif /* __PANGO_IMPL_UTILS_H__ */ |