[shotwell: 1/2] Remove diacritics from search term.
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell: 1/2] Remove diacritics from search term.
- Date: Mon, 12 Nov 2018 10:31:02 +0000 (UTC)
commit 4eb0083943eb7830224b45ebffdb130a24cb3f1b
Author: Daniel Köb <daniel koeb peony at>
Date: Wed Nov 7 21:44:51 2018 +0100
Remove diacritics from search term.
Diacritics are removed from events and tags when searching for them. Thus,
diacritics should be removed from search term as well in order to return
matching items.
src/SearchFilter.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/SearchFilter.vala b/src/SearchFilter.vala
index bad6a738..02584360 100644
--- a/src/SearchFilter.vala
+++ b/src/SearchFilter.vala
@@ -148,7 +148,7 @@ public abstract class SearchViewFilter : ViewFilter {
}
public void set_search_filter(string? text) {
- search_filter = !is_string_empty(text) ? text.down() : null;
+ search_filter = !is_string_empty(text) ? String.remove_diacritics(text.down()) : null;
search_filter_words = search_filter != null ? search_filter.split(" ") : null;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]