mute pango warning about depreciation of pango_coverage_unref for pango>=1.50.4

This commit is contained in:
zdenop 2024-12-28 11:12:02 +01:00
parent dcb2ef91e8
commit 65e864bbbb

View File

@ -230,7 +230,7 @@ bool PangoFontInfo::CoversUTF8Text(const char *utf8_text, int byte_length) const
int len = it.get_utf8(tmp);
tmp[len] = '\0';
tlog(2, "'%s' (U+%x) not covered by font\n", tmp, *it);
#if PANGO_VERSION_CHECK(1, 52, 0)
#if PANGO_VERSION_CHECK(1, 50, 4)
g_object_unref(coverage);
#else
pango_coverage_unref(coverage);
@ -239,7 +239,7 @@ bool PangoFontInfo::CoversUTF8Text(const char *utf8_text, int byte_length) const
return false;
}
}
#if PANGO_VERSION_CHECK(1, 52, 0)
#if PANGO_VERSION_CHECK(1, 50, 4)
g_object_unref(coverage);
#else
pango_coverage_unref(coverage);
@ -311,7 +311,7 @@ int PangoFontInfo::DropUncoveredChars(std::string *utf8_text) const {
my_strnmove(out, utf8_char, utf8_len);
out += utf8_len;
}
#if PANGO_VERSION_CHECK(1, 52, 0)
#if PANGO_VERSION_CHECK(1, 50, 4)
g_object_unref(coverage);
#else
pango_coverage_unref(coverage);
@ -615,7 +615,7 @@ int FontUtils::FontScore(const std::unordered_map<char32, int64_t> &ch_map,
ch_flags->push_back(covered);
}
}
#if PANGO_VERSION_CHECK(1, 52, 0)
#if PANGO_VERSION_CHECK(1, 50, 4)
g_object_unref(coverage);
#else
pango_coverage_unref(coverage);