Mercurial > pidgin.yaz
comparison src/gtkimhtml.c @ 10793:ccf5e33e3239
[gaim-migrate @ 12435]
this should fix the infinite looping.
I bet we still infinite loop in the debug window, but the fix for that is
obvious, don't have debug statements in the expose event :P
Someone should double check this code works right in say, rtl languages
and stuff, and genereally look for bugs.
committer: Tailor Script <tailor@pidgin.im>
author | Tim Ringenbach <marv@pidgin.im> |
---|---|
date | Fri, 08 Apr 2005 01:31:50 +0000 |
parents | 7638c282b1d3 |
children | d34054fcab50 |
comparison
equal
deleted
inserted
replaced
10792:643f458f8414 | 10793:ccf5e33e3239 |
---|---|
577 cur = start; | 577 cur = start; |
578 | 578 |
579 while (gtk_text_iter_in_range(&cur, &start, &end)) { | 579 while (gtk_text_iter_in_range(&cur, &start, &end)) { |
580 tags = gtk_text_iter_get_tags(&cur); | 580 tags = gtk_text_iter_get_tags(&cur); |
581 | 581 |
582 gaim_debug_info("gtkimhtml", "cur = %d, start = %d, end = %d\n", | |
583 gtk_text_iter_get_offset(&cur), gtk_text_iter_get_offset(&start), | |
584 gtk_text_iter_get_offset(&end)); | |
585 | |
582 for (l = tags; l; l = l->next) { | 586 for (l = tags; l; l = l->next) { |
583 GtkTextTag *tag = l->data; | 587 GtkTextTag *tag = l->data; |
584 GdkRectangle rect; | 588 GdkRectangle rect; |
585 GdkRectangle tag_area; | 589 GdkRectangle tag_area; |
586 const char *color; | 590 const char *color; |
633 gtk_text_iter_backward_char(&cur); | 637 gtk_text_iter_backward_char(&cur); |
634 break; | 638 break; |
635 } | 639 } |
636 | 640 |
637 g_slist_free(tags); | 641 g_slist_free(tags); |
638 gtk_text_iter_forward_to_tag_toggle(&cur, NULL); | 642 while (gtk_text_iter_forward_to_tag_toggle(&cur, NULL) && gtk_text_iter_begins_tag(&cur, NULL)); |
639 } | 643 } |
640 #if 0 | 644 #if 0 |
641 while (l) { | 645 while (l) { |
642 struct backcolor_tag *tag = (struct backcolor_tag*)l->data; | 646 struct backcolor_tag *tag = (struct backcolor_tag*)l->data; |
643 GdkRectangle visible_rect; | 647 GdkRectangle visible_rect; |