im.pidgin.pidgin: e710412b710c5694a04ad40e4922f33f6471b559

seanegan at pidgin.im seanegan at pidgin.im
Thu Jan 24 19:56:23 EST 2008


-----------------------------------------------------------------
Revision: e710412b710c5694a04ad40e4922f33f6471b559
Ancestor: 2c066d1f4bb78c8874e050c8a7836b7cc955b651
Author: seanegan at pidgin.im
Date: 2008-01-17T21:08:20
Branch: im.pidgin.pidgin

Modified files:
        pidgin/gtkimhtml.c

ChangeLog: 

Only use invisible text with gtk 2.10.10 or later due to GnomeBug:382565

-------------- next part --------------
============================================================
--- pidgin/gtkimhtml.c	de585f215fc728cae65c8d8a2448e12462065530
+++ pidgin/gtkimhtml.c	20f62765929b6a163984f56c70dedc9da137b5ac
@@ -1455,7 +1455,7 @@ static void gtk_imhtml_init (GtkIMHtml *
 	gtk_text_buffer_create_tag(imhtml->text_buffer, "SUP", "rise", 5000, NULL);
 	gtk_text_buffer_create_tag(imhtml->text_buffer, "PRE", "family", "Monospace", NULL);
 	gtk_text_buffer_create_tag(imhtml->text_buffer, "search", "background", "#22ff00", "weight", "bold", NULL);
-#if GTK_CHECK_VERSION(2,8,0)
+#if GTK_CHECK_VERSION(2,10,10)
 	gtk_text_buffer_create_tag(imhtml->text_buffer, "comment", "invisible", FALSE, NULL);
 #endif
 
@@ -2984,7 +2984,7 @@ void gtk_imhtml_insert_html_at_iter(GtkI
 
 					gtk_text_buffer_insert(imhtml->text_buffer, iter, ws, wpos);
 
-#if GTK_CHECK_VERSION(2,8,0)
+#if GTK_CHECK_VERSION(2,10,10)
 					wpos = g_snprintf (ws, len, "%s", tag);
 					gtk_text_buffer_insert_with_tags_by_name(imhtml->text_buffer, iter, ws, wpos, "comment", NULL);
 #else
@@ -3138,7 +3138,7 @@ void       gtk_imhtml_show_comments    (
 void       gtk_imhtml_show_comments    (GtkIMHtml        *imhtml,
 					gboolean          show)
 {
-#if GTK_CHECK_VERSION(2,8,0)
+#if GTK_CHECK_VERSION(2,10,10)
 	GtkTextTag *tag;
 	tag = gtk_text_tag_table_lookup(gtk_text_buffer_get_tag_table(imhtml->text_buffer), "comment");
 	if (tag)


More information about the Commits mailing list