comparison src/gtkimhtml.c @ 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 19459d9eead2
children 5f78e96ff135
comparison
equal deleted inserted replaced
8364:faf86e506ebe 8365:0e05e094e371
2808 gtk_text_buffer_get_iter_at_mark(imhtml->text_buffer, &tagend, sspan->end); 2808 gtk_text_buffer_get_iter_at_mark(imhtml->text_buffer, &tagend, sspan->end);
2809 if (sspan->end == NULL || gtk_text_iter_compare(&tagend, start) > 0) { 2809 if (sspan->end == NULL || gtk_text_iter_compare(&tagend, start) > 0) {
2810 str = g_string_append(str, sspan->start_tag); 2810 str = g_string_append(str, sspan->start_tag);
2811 closers = g_list_insert_sorted(closers, sspan, (GCompareFunc)span_compare_end); 2811 closers = g_list_insert_sorted(closers, sspan, (GCompareFunc)span_compare_end);
2812 espan = (GtkIMHtmlFormatSpan*)closers->data; 2812 espan = (GtkIMHtmlFormatSpan*)closers->data;
2813 /*
2814 * When sending an IM, the following line causes the following warning:
2815 * Gtk: file gtktextbuffer.c: line 1794
2816 * (gtk_text_buffer_get_iter_at_mark): assertion `GTK_IS_TEXT_MARK (mark)' failed
2817 *
2818 * The callback path thingy to get here is:
2819 * gtkconv.c, send(), "buf = gtk_imhtml_get_markup(GTK_IMHTML(gtkconv->entry));"
2820 * gtkimhtml.c, gtk_imthml_get_markup(), "return gtk_imhtml_get_markup_range(imhtml, &start, &end);"
2821 *
2822 * I don't really know anything about gtkimhtml, but it almost seems like
2823 * the line above this comments expects to find a closing html tag, but
2824 * can't, for some reason. The warning depends on how much HTML I send
2825 * in my message, kind of.
2826 */
2813 gtk_text_buffer_get_iter_at_mark(imhtml->text_buffer, &eiter, espan->end); 2827 gtk_text_buffer_get_iter_at_mark(imhtml->text_buffer, &eiter, espan->end);
2814 } 2828 }
2815 sspan = (GtkIMHtmlFormatSpan*)starters->data; 2829 sspan = (GtkIMHtmlFormatSpan*)starters->data;
2816 gtk_text_buffer_get_iter_at_mark(imhtml->text_buffer, &siter, sspan->start); 2830 gtk_text_buffer_get_iter_at_mark(imhtml->text_buffer, &siter, sspan->start);
2817 starters = starters->next; 2831 starters = starters->next;