Use pango_layout_is_ellipsized only with pango >= 1.16

This commit is contained in:
Sergey Popov 2008-09-04 13:58:26 +00:00
parent 3bdb75e744
commit 8cfba206d2

View file

@ -127,7 +127,12 @@ bool ttext::is_truncated() const
{
recalculate();
#if defined(PANGO_VERSION_CHECK)
#if PANGO_VERSION_CHECK(1,16,0)
return (pango_layout_is_ellipsized(layout_) == TRUE);
#endif
#endif
return false;
}
unsigned ttext::insert_text(const unsigned offset, const std::string& text)