Mercurial > pidgin.yaz
changeset 29392:4863fed15aa2
Do a version-check for pango.
If pango can not tell us if the text is ellipsized, then always show the
tooltip in conversation tabs.
Fixes <4B6F287B.3040706@darkrain42.org>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Mon, 08 Feb 2010 18:38:42 +0000 |
parents | 93f613ccd002 |
children | fa35d7029a14 |
files | pidgin/gtkconv.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtkconv.c Mon Feb 08 16:44:05 2010 +0000 +++ b/pidgin/gtkconv.c Mon Feb 08 18:38:42 2010 +0000 @@ -9537,6 +9537,12 @@ #if GTK_CHECK_VERSION(2, 12, 0) #define gtk_tooltips_set_tip(tips, w, l, p) gtk_widget_set_tooltip_text(w, l) #endif +/* PANGO_VERSION_CHECK macro was introduced in 1.15. So we need this double check. */ +#ifndef PANGO_VERSION_CHECK +#define pango_layout_is_ellipsized(l) TRUE +#elif !PANGO_VERSION_CHECK(1,16,0) +#define pango_layout_is_ellipsized(l) TRUE +#endif PangoLayout *layout; layout = gtk_label_get_layout(GTK_LABEL(gtkconv->tab_label));