Mercurial > pidgin
comparison src/gtkimhtml.c @ 11233:f08d22130bb2
[gaim-migrate @ 13373]
This should fix the "Invalid text buffer iterator" errors.
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Thu, 11 Aug 2005 14:20:23 +0000 |
parents | 409d6a11da51 |
children | 7d5e8bed8018 |
comparison
equal
deleted
inserted
replaced
11232:8bcd4d4ccef6 | 11233:f08d22130bb2 |
---|---|
2481 | 2481 |
2482 ws[wpos++] = '\n'; | 2482 ws[wpos++] = '\n'; |
2483 gtk_text_buffer_insert(imhtml->text_buffer, iter, ws, wpos); | 2483 gtk_text_buffer_insert(imhtml->text_buffer, iter, ws, wpos); |
2484 | 2484 |
2485 sd->scalable = scalable = gtk_imhtml_hr_new(); | 2485 sd->scalable = scalable = gtk_imhtml_hr_new(); |
2486 sd->mark = gtk_text_buffer_create_mark(imhtml->text_buffer, NULL, iter, TRUE); | |
2486 gtk_text_view_get_visible_rect(GTK_TEXT_VIEW(imhtml), &rect); | 2487 gtk_text_view_get_visible_rect(GTK_TEXT_VIEW(imhtml), &rect); |
2487 scalable->add_to(scalable, imhtml, iter); | 2488 scalable->add_to(scalable, imhtml, iter); |
2488 minus = gtk_text_view_get_left_margin(GTK_TEXT_VIEW(imhtml)) + | 2489 minus = gtk_text_view_get_left_margin(GTK_TEXT_VIEW(imhtml)) + |
2489 gtk_text_view_get_right_margin(GTK_TEXT_VIEW(imhtml)); | 2490 gtk_text_view_get_right_margin(GTK_TEXT_VIEW(imhtml)); |
2490 scalable->scale(scalable, rect.width - minus, rect.height); | 2491 scalable->scale(scalable, rect.width - minus, rect.height); |
2491 sd->mark = gtk_text_buffer_create_mark(imhtml->text_buffer, NULL, iter, TRUE); | |
2492 imhtml->scalables = g_list_append(imhtml->scalables, sd); | 2492 imhtml->scalables = g_list_append(imhtml->scalables, sd); |
2493 ws[0] = '\0'; wpos = 0; | 2493 ws[0] = '\0'; wpos = 0; |
2494 ws[wpos++] = '\n'; | 2494 ws[wpos++] = '\n'; |
2495 | 2495 |
2496 break; | 2496 break; |
4282 GTK_ICON_SIZE_BUTTON, "gtkimhtml-missing-image"); | 4282 GTK_ICON_SIZE_BUTTON, "gtkimhtml-missing-image"); |
4283 } | 4283 } |
4284 | 4284 |
4285 sd = g_new(struct scalable_data, 1); | 4285 sd = g_new(struct scalable_data, 1); |
4286 sd->scalable = scalable = gtk_imhtml_image_new(pixbuf, filename, id); | 4286 sd->scalable = scalable = gtk_imhtml_image_new(pixbuf, filename, id); |
4287 sd->mark = gtk_text_buffer_create_mark(imhtml->text_buffer, NULL, iter, TRUE); | |
4287 gtk_text_view_get_visible_rect(GTK_TEXT_VIEW(imhtml), &rect); | 4288 gtk_text_view_get_visible_rect(GTK_TEXT_VIEW(imhtml), &rect); |
4288 scalable->add_to(scalable, imhtml, iter); | 4289 scalable->add_to(scalable, imhtml, iter); |
4289 minus = gtk_text_view_get_left_margin(GTK_TEXT_VIEW(imhtml)) + | 4290 minus = gtk_text_view_get_left_margin(GTK_TEXT_VIEW(imhtml)) + |
4290 gtk_text_view_get_right_margin(GTK_TEXT_VIEW(imhtml)); | 4291 gtk_text_view_get_right_margin(GTK_TEXT_VIEW(imhtml)); |
4291 scalable->scale(scalable, rect.width - minus, rect.height); | 4292 scalable->scale(scalable, rect.width - minus, rect.height); |
4292 sd->mark = gtk_text_buffer_create_mark(imhtml->text_buffer, NULL, iter, TRUE); | |
4293 imhtml->scalables = g_list_append(imhtml->scalables, sd); | 4293 imhtml->scalables = g_list_append(imhtml->scalables, sd); |
4294 | 4294 |
4295 g_object_unref(G_OBJECT(pixbuf)); | 4295 g_object_unref(G_OBJECT(pixbuf)); |
4296 } | 4296 } |
4297 | 4297 |