# HG changeset patch # User Daniel Atallah # Date 1123770023 0 # Node ID f08d22130bb299b4b6298149ec3ae104c41ff074 # Parent 8bcd4d4ccef6b349e5e5828569209826e51acf6d [gaim-migrate @ 13373] This should fix the "Invalid text buffer iterator" errors. committer: Tailor Script diff -r 8bcd4d4ccef6 -r f08d22130bb2 src/gtkimhtml.c --- a/src/gtkimhtml.c Thu Aug 11 07:56:29 2005 +0000 +++ b/src/gtkimhtml.c Thu Aug 11 14:20:23 2005 +0000 @@ -2483,12 +2483,12 @@ gtk_text_buffer_insert(imhtml->text_buffer, iter, ws, wpos); sd->scalable = scalable = gtk_imhtml_hr_new(); + sd->mark = gtk_text_buffer_create_mark(imhtml->text_buffer, NULL, iter, TRUE); gtk_text_view_get_visible_rect(GTK_TEXT_VIEW(imhtml), &rect); scalable->add_to(scalable, imhtml, iter); minus = gtk_text_view_get_left_margin(GTK_TEXT_VIEW(imhtml)) + gtk_text_view_get_right_margin(GTK_TEXT_VIEW(imhtml)); scalable->scale(scalable, rect.width - minus, rect.height); - sd->mark = gtk_text_buffer_create_mark(imhtml->text_buffer, NULL, iter, TRUE); imhtml->scalables = g_list_append(imhtml->scalables, sd); ws[0] = '\0'; wpos = 0; ws[wpos++] = '\n'; @@ -4284,12 +4284,12 @@ sd = g_new(struct scalable_data, 1); sd->scalable = scalable = gtk_imhtml_image_new(pixbuf, filename, id); + sd->mark = gtk_text_buffer_create_mark(imhtml->text_buffer, NULL, iter, TRUE); gtk_text_view_get_visible_rect(GTK_TEXT_VIEW(imhtml), &rect); scalable->add_to(scalable, imhtml, iter); minus = gtk_text_view_get_left_margin(GTK_TEXT_VIEW(imhtml)) + gtk_text_view_get_right_margin(GTK_TEXT_VIEW(imhtml)); scalable->scale(scalable, rect.width - minus, rect.height); - sd->mark = gtk_text_buffer_create_mark(imhtml->text_buffer, NULL, iter, TRUE); imhtml->scalables = g_list_append(imhtml->scalables, sd); g_object_unref(G_OBJECT(pixbuf));