pidgin: 82bea91d: Do a version-check for pango.

sadrul at sadrul at
Mon Feb 8 13:40:40 EST 2010

Revision: 82bea91d8b15d548f2eefa3fb33e7cb7252df802
Ancestor: d2a3c1030225e8e39307ad3cab192be42cb04cde
Author: sadrul at
Date: 2010-02-08T18:38:42
Branch: im.pidgin.pidgin

Modified files:


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 at>

-------------- next part --------------
--- pidgin/gtkconv.c	1d010f627d62c6727e46bcc57bb96aa93148b029
+++ pidgin/gtkconv.c	11a1ad0bdf70cf67000fe1b72becaa8fdccb7f86
@@ -9537,6 +9537,12 @@ gtkconv_tab_set_tip(GtkWidget *widget, G
 #if GTK_CHECK_VERSION(2, 12, 0)
 #define gtk_tooltips_set_tip(tips, w, l, p)  gtk_widget_set_tooltip_text(w, l)
+/* PANGO_VERSION_CHECK macro was introduced in 1.15. So we need this double check. */
+#define pango_layout_is_ellipsized(l) TRUE
+#elif !PANGO_VERSION_CHECK(1,16,0)
+#define pango_layout_is_ellipsized(l) TRUE
 	PangoLayout *layout;
 	layout = gtk_label_get_layout(GTK_LABEL(gtkconv->tab_label));

More information about the Commits mailing list