# HG changeset patch # User Sadrul Habib Chowdhury # Date 1265654322 0 # Node ID 4863fed15aa2e57b82881b70864075d52a52f5ff # Parent 93f613ccd00259f8d72a54097cc046621fffa718 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> diff -r 93f613ccd002 -r 4863fed15aa2 pidgin/gtkconv.c --- 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));