From 9c120d63889fb8e52f108656eeeb66d1e6dbc507 Mon Sep 17 00:00:00 2001 From: Manuel QuiƱones Date: Mon, 22 Oct 2012 18:26:25 +0000 Subject: 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 --- (limited to 'webtoolbar.py') 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) -- cgit v0.9.1