summaryrefslogtreecommitdiff
path: root/pango/pangocoretext-fontmap.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2012-08-27 23:43:38 -0400
committerBehdad Esfahbod <behdad@behdad.org>2012-08-28 00:05:19 -0400
commit4105e20d799a80f9c0c2befdef8f458ee11654a6 (patch)
treee98bb1e985584a28267af6e892471c3617053665 /pango/pangocoretext-fontmap.c
parent26bbf750ab0754c113722e87942174cf2953dad4 (diff)
downloadpango-4105e20d799a80f9c0c2befdef8f458ee11654a6.tar.gz
More churn
Diffstat (limited to 'pango/pangocoretext-fontmap.c')
-rw-r--r--pango/pangocoretext-fontmap.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/pango/pangocoretext-fontmap.c b/pango/pangocoretext-fontmap.c
index 034d0507..6f68d62e 100644
--- a/pango/pangocoretext-fontmap.c
+++ b/pango/pangocoretext-fontmap.c
@@ -111,8 +111,8 @@ typedef struct
PangoWeight weight;
} PangoCTWeight;
-static const float ct_weight_min = -1.00f;
-static const float ct_weight_max = 1.00f;
+const float ct_weight_min = -1.00f;
+const float ct_weight_max = 1.00f;
static const PangoCTWeight ct_weight_limits[] = {
{ -0.70, PANGO_WEIGHT_THIN},
@@ -780,7 +780,7 @@ get_context_matrix (PangoContext *context,
PangoMatrix *matrix)
{
const PangoMatrix *set_matrix;
- static const PangoMatrix identity = PANGO_MATRIX_INIT;
+ const PangoMatrix identity = PANGO_MATRIX_INIT;
if (context)
set_matrix = pango_context_get_matrix (context);
@@ -1275,7 +1275,7 @@ pango_core_text_font_map_load_fontset (PangoFontMap *fontmap,
PangoCoreTextFontset *fontset;
PangoCoreTextFontsetKey key;
PangoCoreTextFontMap *ctfontmap = PANGO_CORE_TEXT_FONT_MAP (fontmap);
- static gboolean warned_full_fallback = FALSE;
+ static gboolean warned_full_fallback = FALSE; /* MT-safe */
pango_core_text_fontset_key_init (&key, ctfontmap,
context, desc, language);
@@ -1492,8 +1492,6 @@ struct _PangoCoreTextFontset
typedef PangoFontsetClass PangoCoreTextFontsetClass;
-static PangoFontsetClass *core_text_fontset_parent_class;
-
/* This symbol does exist in the CoreText library shipped with Snow
* Leopard and Lion, however, it is not found in the public header files.
@@ -1619,8 +1617,6 @@ pango_core_text_fontset_class_init (PangoCoreTextFontsetClass *klass)
GObjectClass *object_class = G_OBJECT_CLASS (klass);
PangoFontsetClass *fontset_class = PANGO_FONTSET_CLASS (klass);
- core_text_fontset_parent_class = g_type_class_peek_parent (klass);
-
object_class->finalize = pango_core_text_fontset_finalize;
fontset_class->get_font = pango_core_text_fontset_get_font;
@@ -1666,7 +1662,7 @@ pango_core_text_fontset_finalize (GObject *object)
if (ctfontset->key)
pango_core_text_fontset_key_free (ctfontset->key);
- G_OBJECT_CLASS (core_text_fontset_parent_class)->finalize (object);
+ G_OBJECT_CLASS (pango_core_text_fontset_parent_class)->finalize (object);
}
static PangoCoreTextFontsetKey *