From 21173bc11889176d5b142f2c3341bc604949b886 Mon Sep 17 00:00:00 2001
Message-Id: <21173bc11889176d5b142f2c3341bc604949b886.1335972929.git.humitos@gmail.com>
From: Manuel Kaufmann <humitos@gmail.com>
Date: Wed, 2 May 2012 12:33:18 -0300
Subject: [PATCH Browse] Use UNICODE string to search into places SL #2830
Decode (using 'utf-8') the string inserted by the user in the URL address bar
to search with SQLite into places' database.
Signed-off-by: Manuel Kaufmann <humitos@gmail.com>
---
webtoolbar.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/webtoolbar.py b/webtoolbar.py
index d0f2dc9..c595206 100644
a
|
b
|
class WebEntry(iconentry.IconEntry): |
120 | 120 | def _search_update(self): |
121 | 121 | list_store = Gtk.ListStore(str, str) |
122 | 122 | |
123 | | for place in places.get_store().search(self.props.text): |
| 123 | search_text = self.props.text.decode('utf-8') |
| 124 | for place in places.get_store().search(search_text): |
124 | 125 | list_store.append([place.uri, place.title]) |
125 | 126 | |
126 | 127 | self._search_view.set_model(list_store) |