comparison src/bar_info.c @ 1193:aed0e28b2744

keyword_list_find() -> find_string_in_list(), return gboolean.
author zas_
date Sun, 30 Nov 2008 21:59:28 +0000
parents 48d62a7e3c33
children 70f1d002436f
comparison
equal deleted inserted replaced
1192:48d62a7e3c33 1193:aed0e28b2744
469 while (list) 469 while (list)
470 { 470 {
471 gchar *key = list->data; 471 gchar *key = list->data;
472 472
473 gtk_list_store_append(store, &iter); 473 gtk_list_store_append(store, &iter);
474 gtk_list_store_set(store, &iter, KEYWORD_COLUMN_TOGGLE, keyword_list_find(keywords, key), 474 gtk_list_store_set(store, &iter, KEYWORD_COLUMN_TOGGLE, find_string_in_list(keywords, key),
475 KEYWORD_COLUMN_TEXT, key, -1); 475 KEYWORD_COLUMN_TEXT, key, -1);
476 476
477 list = list->prev; 477 list = list->prev;
478 } 478 }
479 } 479 }
587 gint found; 587 gint found;
588 588
589 if (!keyword) return; 589 if (!keyword) return;
590 590
591 list = keyword_list_pull(bd->keyword_view); 591 list = keyword_list_pull(bd->keyword_view);
592 found = keyword_list_find(list, keyword); 592 found = find_string_in_list(list, keyword);
593 593
594 if (active != found) 594 if (active != found)
595 { 595 {
596 if (found) 596 if (found)
597 { 597 {