diff options
-rw-r--r-- | examples/pangowin32tobmp.c | 4 | ||||
-rw-r--r-- | pango/fonts.c | 2 | ||||
-rw-r--r-- | pango/pango-engine.c | 2 | ||||
-rw-r--r-- | pango/pangocoretext-fontmap.c | 2 | ||||
-rw-r--r-- | pango/pangocoretext.c | 6 | ||||
-rw-r--r-- | pango/pangofc-fontmap.c | 6 | ||||
-rw-r--r-- | pango/pangowin32-fontmap.c | 2 | ||||
-rw-r--r-- | pango/pangowin32.c | 6 | ||||
-rw-r--r-- | tests/test-coverage.c | 6 |
9 files changed, 18 insertions, 18 deletions
diff --git a/examples/pangowin32tobmp.c b/examples/pangowin32tobmp.c index a71017e7..c27eac94 100644 --- a/examples/pangowin32tobmp.c +++ b/examples/pangowin32tobmp.c @@ -125,7 +125,7 @@ int main (int argc, char **argv) /* ... */ - pango_coverage_unref (coverage); + g_object_unref (coverage); pango_font_description_free (desc); g_object_unref (font); } @@ -239,7 +239,7 @@ int main (int argc, char **argv) pango_glyph_string_free (glyphs); pango_item_free (item); - pango_coverage_unref (coverage); + g_object_unref (coverage); g_object_unref (font); } pango_font_description_free (desc); diff --git a/pango/fonts.c b/pango/fonts.c index 1f0ee626..004089fc 100644 --- a/pango/fonts.c +++ b/pango/fonts.c @@ -1742,7 +1742,7 @@ pango_font_default_has_char (PangoFont *font, { PangoCoverage *coverage = pango_font_get_coverage (font, pango_language_get_default ()); PangoCoverageLevel result = pango_coverage_get (coverage, wc); - pango_coverage_unref (coverage); + g_object_unref (coverage); return result != PANGO_COVERAGE_NONE; } diff --git a/pango/pango-engine.c b/pango/pango-engine.c index e52bcd99..bda8eef1 100644 --- a/pango/pango-engine.c +++ b/pango/pango-engine.c @@ -61,7 +61,7 @@ pango_engine_shape_real_covers (PangoEngineShape *engine G_GNUC_UNUSED, PangoCoverage *coverage = pango_font_get_coverage (font, language); PangoCoverageLevel result = pango_coverage_get (coverage, wc); - pango_coverage_unref (coverage); + g_object_unref (coverage); return result; } diff --git a/pango/pangocoretext-fontmap.c b/pango/pangocoretext-fontmap.c index 3bf78e9a..40e62eed 100644 --- a/pango/pangocoretext-fontmap.c +++ b/pango/pangocoretext-fontmap.c @@ -1775,7 +1775,7 @@ pango_core_text_fontset_finalize (GObject *object) { PangoCoverage *coverage = g_ptr_array_index (ctfontset->coverages, i); if (coverage) - pango_coverage_unref (coverage); + g_object_unref (coverage); } g_ptr_array_free (ctfontset->coverages, TRUE); diff --git a/pango/pangocoretext.c b/pango/pangocoretext.c index 25358cac..2fc176e4 100644 --- a/pango/pangocoretext.c +++ b/pango/pangocoretext.c @@ -53,7 +53,7 @@ pango_core_text_font_finalize (GObject *object) } if (priv->coverage) - pango_coverage_unref (priv->coverage); + g_object_unref (priv->coverage); G_OBJECT_CLASS (pango_core_text_font_parent_class)->finalize (object); } @@ -152,7 +152,7 @@ pango_core_text_font_get_coverage (PangoFont *font, priv->coverage = ct_font_descriptor_get_coverage (ctfontdesc); } - return pango_coverage_ref (priv->coverage); + return g_object_ref (priv->coverage); } static PangoFontMap * @@ -253,7 +253,7 @@ _pango_core_text_font_set_font_key (PangoCoreTextFont *font, if (priv->coverage) { - pango_coverage_unref (priv->coverage); + g_object_unref (priv->coverage); priv->coverage = NULL; } } diff --git a/pango/pangofc-fontmap.c b/pango/pangofc-fontmap.c index 5b0c4999..4c39ea1f 100644 --- a/pango/pangofc-fontmap.c +++ b/pango/pangofc-fontmap.c @@ -318,7 +318,7 @@ pango_fc_font_face_data_free (PangoFcFontFaceData *data) FcPatternDestroy (data->pattern); if (data->coverage) - pango_coverage_unref (data->coverage); + g_object_unref (data->coverage); g_free (data->languages); @@ -1227,7 +1227,7 @@ pango_fc_fontset_finalize (GObject *object) { PangoCoverage *coverage = g_ptr_array_index (fontset->coverages, i); if (coverage) - pango_coverage_unref (coverage); + g_object_unref (coverage); } g_ptr_array_free (fontset->coverages, TRUE); @@ -2541,7 +2541,7 @@ _pango_fc_font_map_get_coverage (PangoFcFontMap *fcfontmap, data->coverage = _pango_fc_font_map_fc_to_coverage (charset); } - return pango_coverage_ref (data->coverage); + return g_object_ref (data->coverage); } /** diff --git a/pango/pangowin32-fontmap.c b/pango/pangowin32-fontmap.c index 200ea9ce..43cffc37 100644 --- a/pango/pangowin32-fontmap.c +++ b/pango/pangowin32-fontmap.c @@ -1772,7 +1772,7 @@ pango_win32_face_finalize (GObject *object) pango_font_description_free (win32face->description); if (win32face->coverage != NULL) - pango_coverage_unref (win32face->coverage); + g_object_unref (win32face->coverage); g_free (win32face->face_name); diff --git a/pango/pangowin32.c b/pango/pangowin32.c index 2d22e1d1..eed92dde 100644 --- a/pango/pangowin32.c +++ b/pango/pangowin32.c @@ -596,7 +596,7 @@ pango_win32_font_get_metrics (PangoFont *font, else metrics->approximate_digit_width = metrics->approximate_char_width; - pango_coverage_unref (coverage); + g_object_unref (coverage); /* FIXME: Should get the real values from the TrueType font file */ metrics->underline_position = -2 * PANGO_SCALE; @@ -885,10 +885,10 @@ pango_win32_font_get_coverage (PangoFont *font, while (hb_set_next(chars, &ch)) pango_coverage_set (coverage, ch, PANGO_COVERAGE_EXACT); - win32face->coverage = pango_coverage_ref (coverage); + win32face->coverage = g_object_ref (coverage); } - return pango_coverage_ref (win32face->coverage); + return g_object_ref (win32face->coverage); } /* Utility functions */ diff --git a/tests/test-coverage.c b/tests/test-coverage.c index 9d6bbb8c..ff4b7f1c 100644 --- a/tests/test-coverage.c +++ b/tests/test-coverage.c @@ -44,7 +44,7 @@ test_coverage_basic (void) for (i = 0; i < 100; i++) g_assert_cmpint (pango_coverage_get (coverage, i), ==, PANGO_COVERAGE_NONE); - pango_coverage_unref (coverage); + g_object_unref (coverage); } static void @@ -67,8 +67,8 @@ test_coverage_copy (void) for (i = 0; i < 100; i++) g_assert_cmpint (pango_coverage_get (coverage2, i), ==, PANGO_COVERAGE_EXACT); - pango_coverage_unref (coverage); - pango_coverage_unref (coverage2); + g_object_unref (coverage); + g_object_unref (coverage2); } int |