console/libgnt/gnttextview.c

changeset 15397
2a5e63b97a2b
parent 15396
a5938aa3f6c9
child 15814
2db42c6a13fa
equal deleted inserted replaced
15396:a5938aa3f6c9 15397:2a5e63b97a2b
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) {

mercurial