[gnome-photos] search-controller: Casefold the search string
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] search-controller: Casefold the search string
- Date: Wed, 29 Jan 2014 13:41:48 +0000 (UTC)
commit e9896a09207e152c1baca6a30991f83cd0d248b3
Author: Debarshi Ray <debarshir gnome org>
Date: Tue Jan 28 17:09:29 2014 +0100
search-controller: Casefold the search string
src/photos-search-controller.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-search-controller.c b/src/photos-search-controller.c
index 658d413..18fa666 100644
--- a/src/photos-search-controller.c
+++ b/src/photos-search-controller.c
@@ -128,13 +128,16 @@ photos_search_controller_get_string (PhotosSearchController *self)
gchar **
photos_search_controller_get_terms (PhotosSearchController *self)
{
+ gchar *escaped_str;
gchar *str;
gchar **terms;
- str = tracker_sparql_escape_string (self->priv->str);
+ escaped_str = tracker_sparql_escape_string (self->priv->str);
+ str = g_utf8_casefold (escaped_str, -1);
/* TODO: find out what str.replace(/ + /g, ' ') does */
terms = g_strsplit (str, " ", -1);
g_free (str);
+ g_free (escaped_str);
return terms;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]