diff options
author | Manuel Quiñones <manuq@laptop.org> | 2012-10-22 18:26:25 (GMT) |
---|---|---|
committer | Manuel Quiñones <manuq@laptop.org> | 2012-10-22 19:16:48 (GMT) |
commit | 9c120d63889fb8e52f108656eeeb66d1e6dbc507 (patch) | |
tree | 9a5b97591d2442adf1766ad6209fde8c8f756d74 /webtoolbar.py | |
parent | c9975a7c356b6c7d81473560cd7d5d611c82bfcb (diff) |
Make the autocomplete list touch-friendly - SL #4049
- 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>
Diffstat (limited to 'webtoolbar.py')
-rw-r--r-- | webtoolbar.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/webtoolbar.py b/webtoolbar.py index 29c036b..d99919d 100644 --- a/webtoolbar.py +++ b/webtoolbar.py @@ -27,6 +27,7 @@ from gi.repository import WebKit from sugar3.graphics.toolbutton import ToolButton from sugar3.graphics import iconentry from sugar3.graphics.toolbarbox import ToolbarBox as ToolbarBase +from sugar3.graphics.style import STANDARD_ICON_SIZE from sugar3.activity.widgets import ActivityToolbarButton from sugar3.activity.widgets import StopButton @@ -84,6 +85,7 @@ class WebEntry(iconentry.IconEntry): def _search_create_view(self): view = Gtk.TreeView() view.props.headers_visible = False + view.props.rules_hint = True view.connect('button-press-event', self.__view_button_press_event_cb) @@ -93,6 +95,7 @@ class WebEntry(iconentry.IconEntry): cell = Gtk.CellRendererText() cell.props.ellipsize = Pango.EllipsizeMode.END cell.props.ellipsize_set = True + cell.props.height = STANDARD_ICON_SIZE cell.props.font = 'Bold' column.pack_start(cell, True) |