diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2009-09-13 17:06:02 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2009-09-13 17:06:02 +0200 |
commit | e1756130511cafa5127dc18a8d3844ddd63961a0 (patch) | |
tree | 010b0f6ebd726f881548ebd788fd4f82ea56b805 /search.c | |
parent | c96c663271940785d608647736b78434bd1d2020 (diff) |
added case insensitive search for several languages
Diffstat (limited to 'search.c')
-rw-r--r-- | search.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -35,6 +35,8 @@ #include "messagepump.h" #include "messages.h" +#include "utf8.h" + extern GtkWidget *searchwin; struct playItem_s *search_current = NULL; int search_count = 0; @@ -65,7 +67,8 @@ on_searchentry_changed (GtkEditable *editable, if (*text) { for (playItem_t *it = playlist_head[PL_MAIN]; it; it = it->next[PL_MAIN]) { for (metaInfo_t *m = it->meta; m; m = m->next) { - if (strcasestr (m->value, text)) { +// if (strcasestr (m->value, text)) { + if (utfcasestr (m->value, text)) { // add to list it->next[PL_SEARCH] = NULL; if (playlist_tail[PL_SEARCH]) { |