| 507 */ |
507 */ |
| 508 int gnt_text_view_tag_change(GntTextView *view, const char *name, const char *text, gboolean all) |
508 int gnt_text_view_tag_change(GntTextView *view, const char *name, const char *text, gboolean all) |
| 509 { |
509 { |
| 510 GList *alllines = g_list_first(view->list); |
510 GList *alllines = g_list_first(view->list); |
| 511 GList *list, *next, *iter, *inext; |
511 GList *list, *next, *iter, *inext; |
| 512 const int text_length = text ? g_utf8_strlen(text, -1) : 0; |
512 const int text_length = text ? strlen(text) : 0; |
| 513 int count = 0; |
513 int count = 0; |
| 514 for (list = view->tags; list; list = next) { |
514 for (list = view->tags; list; list = next) { |
| 515 GntTextTag *tag = list->data; |
515 GntTextTag *tag = list->data; |
| 516 next = list->next; |
516 next = list->next; |
| 517 if (strcmp(tag->name, name) == 0) { |
517 if (strcmp(tag->name, name) == 0) { |