summaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@ximian.com>2005-11-22 21:38:41 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2005-11-22 21:38:41 +0000
commit0f91602a3719ad4344712910a0cd825c58497a2b (patch)
treef7875f364b22bd12389e5cb363910e12ebd81584 /ChangeLog
parent550026ab7e2d2cfeeacd1cd68ecb1ac31a4733e4 (diff)
downloadpango-0f91602a3719ad4344712910a0cd825c58497a2b.tar.gz
Fixes #322174:
2005-11-22 Federico Mena Quintero <federico@ximian.com> Fixes #322174: * pango/pangofc-font.h (struct _PangoFcFont): Replace the "gpointer context_key" field with "gpointer priv". This way we can access the private data quickly, instead of using g_type_instance_get_private(). * pango/pangofc-private.h: Added prototypes for _pango_fc_font_{get,set}_context_key(). * pango/pangofc-font.c (struct _PangoFcFontPrivate): Moved the "context_key" field to here. (PANGO_FC_FONT_GET_PRIVATE): Use the "priv" field instead of GType private data. (pango_fc_font_class_init): Don't register GType private data. (pango_fc_font_init): Initialize the private data here. (pango_fc_font_finalize): Free the private data. (_pango_fc_font_get_context_key): Implement. (_pango_fc_font_set_context_key): Implement. (pango_fc_font_get_glyph): Remove the g_return_val_if_fail(); it was appearing quite high in the profile. * pango/pangofc-fontmap.c (pango_fc_font_map_add): Call _pango_fc_font_set_context_key() instead of setting the fcfont->context_key directly. (_pango_fc_font_map_remove): Likewise; also use _pango_fc_font_get_context_key() instead of accessing the field directly.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog31
1 files changed, 31 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index de8eb7f9..cc760176 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,34 @@
+2005-11-22 Federico Mena Quintero <federico@ximian.com>
+
+ Fixes #322174:
+
+ * pango/pangofc-font.h (struct _PangoFcFont): Replace the
+ "gpointer context_key" field with "gpointer priv". This way we
+ can access the private data quickly, instead of using
+ g_type_instance_get_private().
+
+ * pango/pangofc-private.h: Added prototypes for
+ _pango_fc_font_{get,set}_context_key().
+
+ * pango/pangofc-font.c (struct _PangoFcFontPrivate): Moved the
+ "context_key" field to here.
+ (PANGO_FC_FONT_GET_PRIVATE): Use the "priv" field instead of GType
+ private data.
+ (pango_fc_font_class_init): Don't register GType private data.
+ (pango_fc_font_init): Initialize the private data here.
+ (pango_fc_font_finalize): Free the private data.
+ (_pango_fc_font_get_context_key): Implement.
+ (_pango_fc_font_set_context_key): Implement.
+ (pango_fc_font_get_glyph): Remove the g_return_val_if_fail(); it
+ was appearing quite high in the profile.
+
+ * pango/pangofc-fontmap.c (pango_fc_font_map_add): Call
+ _pango_fc_font_set_context_key() instead of setting the
+ fcfont->context_key directly.
+ (_pango_fc_font_map_remove): Likewise; also use
+ _pango_fc_font_get_context_key() instead of accessing the field
+ directly.
+
2005-11-22 Behdad Esfahbod <behdad@gnome.org>
* pango/pangoxft-font.c (_pango_xft_font_get_mini_font): Load a font