# HG changeset patch # User Sean Egan # Date 1200604100 0 # Node ID 80e5eaa8f58064d2cf0453d660057aefedae0327 # Parent 2e62ff5ec31155c966c9b385b634e77c5cf8a30a Only use invisible text with gtk 2.10.10 or later due to GnomeBug:382565 diff -r 2e62ff5ec311 -r 80e5eaa8f580 pidgin/gtkimhtml.c --- a/pidgin/gtkimhtml.c Thu Jan 17 21:07:06 2008 +0000 +++ b/pidgin/gtkimhtml.c Thu Jan 17 21:08:20 2008 +0000 @@ -1455,7 +1455,7 @@ 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 @@ 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 (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)