Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/places.py
Commit message (Collapse)AuthorAgeFilesLines
* Make the autocomplete list touch-friendly - SL #4049Manuel Quiñones2012-10-221-1/+1
| | | | | | | | | | | | - limit the number of matches so the list doesn't interfere with the OSK - enlarge the rows height to the size of an icon of standard size, so the rows are as touchable as Sugar icons - make the list of alternate colors to distinguish the clickable/touchable area Signed-off-by: Manuel Quiñones <manuq@laptop.org>
* Store empty strings instead of None in the places sqlite database.Manuel Quiñones2012-03-281-2/+10
| | | | | | | | | | | | | | | | | | | The SQL model sets "text" as the fields type for uri and title. However, sqlite uses a dynamic type sistem [1] and our Place class was initializing those attributes with None. As a consequence, when the user types something in the toolbar entry, and a search is made to show a drop-down list for autocomplete, the drop-down list is being filled with None, but is defined as Gtk.ListStore(str, str). This is provoking a GTK+ error,that crashes the activity in the XO, as bug In order to keep backwards compatibility, if the database returns None for does fields, they are translated to empty strings in _place_from_row() method of place.SqliteStore . [1] http://sqlite.org/datatype3.html Signed-off-by: Manuel Quiñones <manuq@laptop.org> Signed-off-by: Simon Schampijer <simon@laptop.org>
* Global history for URL autocompletion in URL entryManuel Quiñones2012-01-061-0/+3
| | | | | | | | | The sqlite backend to store the global history is maintained. There are two fields in the database that are left unused: bookmark and gecko_flags. Signed-off-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
* Rename sugar to sugar3Manuel Quiñones2011-11-291-1/+1
| | | | Signed-off-by: Manuel Quiñones <manuq@laptop.org>
* Fix overlong linesSascha Silbe2011-05-211-1/+1
| | | | Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
* add/remove some empty lines according to PEP8Sascha Silbe2010-06-161-0/+3
|
* remove EOL spacesSascha Silbe2010-06-161-1/+1
|
* Address Tomeu review comments.Marco Pesenti Gritti2008-06-131-53/+64
|
* Add a bookmark boolean field to mark bookmarks so thatMarco Pesenti Gritti2008-06-121-6/+8
| | | | we can give them an higer position in the queries.
* Implement simple cleanup. Drop sites older than 30 days on startup.Marco Pesenti Gritti2008-06-121-2/+19
|
* Add a last_visit fieldMarco Pesenti Gritti2008-06-121-15/+29
|
* Implement the sqlite store.Marco Pesenti Gritti2008-06-121-30/+52
|
* First go at autocompletion. Still using a fake, in-memory backend.Marco Pesenti Gritti2008-06-121-0/+72