diff pidgin/gtkimhtml.c @ 16229:12e2ee612d5f

Fix for using Pango < 1.4, will not have complete RTL support with older Pango though.
author Stu Tomlinson <stu@nosnilmot.com>
date Tue, 17 Apr 2007 11:14:50 +0000
parents 247e421c4fa6
children a32325c04158
line wrap: on
line diff
--- a/pidgin/gtkimhtml.c	Tue Apr 17 10:15:54 2007 +0000
+++ b/pidgin/gtkimhtml.c	Tue Apr 17 11:14:50 2007 +0000
@@ -4573,12 +4573,14 @@
 
 	/* Bi-directional text support */
 	/* Get to the first non-neutral character */
+#ifdef HAVE_PANGO14
 	while ((PANGO_DIRECTION_NEUTRAL == pango_unichar_direction(gtk_text_iter_get_char(&non_neutral_iter)))
 		&& gtk_text_iter_forward_char(&non_neutral_iter));
 	if (PANGO_DIRECTION_RTL == pango_unichar_direction(gtk_text_iter_get_char(&non_neutral_iter))) {
 		is_rtl_message = TRUE;
 		g_string_append(str, "<SPAN style=\"direction:rtl;text-align:right;\">");
 	}
+#endif
 
 	/* First add the tags that are already in progress (we don't care about non-printing tags)*/
 	tags = gtk_text_iter_get_tags(start);