changeset 8365:0e05e094e371

[gaim-migrate @ 9090] Seaaaannnnnnn, I fall down go boom. You make better? committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 28 Feb 2004 23:33:20 +0000
parents faf86e506ebe
children 5956297c6bcc
files src/gtkimhtml.c
diffstat 1 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkimhtml.c	Sat Feb 28 22:59:10 2004 +0000
+++ b/src/gtkimhtml.c	Sat Feb 28 23:33:20 2004 +0000
@@ -2810,6 +2810,20 @@
 				str = g_string_append(str, sspan->start_tag);
 				closers = g_list_insert_sorted(closers, sspan, (GCompareFunc)span_compare_end);
 				espan = (GtkIMHtmlFormatSpan*)closers->data;
+				/*
+				 * When sending an IM, the following line causes the following warning:
+				 *   Gtk: file gtktextbuffer.c: line 1794
+				 *     (gtk_text_buffer_get_iter_at_mark): assertion `GTK_IS_TEXT_MARK (mark)' failed
+				 *
+				 * The callback path thingy to get here is:
+				 * gtkconv.c, send(), "buf = gtk_imhtml_get_markup(GTK_IMHTML(gtkconv->entry));"
+				 * gtkimhtml.c, gtk_imthml_get_markup(), "return gtk_imhtml_get_markup_range(imhtml, &start, &end);"
+				 *
+				 * I don't really know anything about gtkimhtml, but it almost seems like
+				 * the line above this comments expects to find a closing html tag, but
+				 * can't, for some reason.  The warning depends on how much HTML I send
+				 * in my message, kind of.
+				 */
 				gtk_text_buffer_get_iter_at_mark(imhtml->text_buffer, &eiter, espan->end);
 			}
 			sspan = (GtkIMHtmlFormatSpan*)starters->data;