summaryrefslogtreecommitdiff
path: root/search.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-09-13 17:06:02 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-09-13 17:06:02 +0200
commite1756130511cafa5127dc18a8d3844ddd63961a0 (patch)
tree010b0f6ebd726f881548ebd788fd4f82ea56b805 /search.c
parentc96c663271940785d608647736b78434bd1d2020 (diff)
added case insensitive search for several languages
Diffstat (limited to 'search.c')
-rw-r--r--search.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/search.c b/search.c
index f82db024..a1bf4665 100644
--- a/search.c
+++ b/search.c
@@ -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]) {