Attachments you submit will be routed for moderation. If you have an account, please
log in first.
Ticket #2830: 0001-Use-UNICODE-string-to-search-into-places-SL-2830.patch
|
File 0001-Use-UNICODE-string-to-search-into-places-SL-2830.patch, 1.1 KB
(added by humitos, 13 months ago)
|
|
|
-
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
|
|
| 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) |
Download in other formats: