[Sugar-devel] [PATCH] Disable the search entry in the activities list view and in the Journal - SL #3205

godiard at sugarlabs.org godiard at sugarlabs.org
Thu Oct 20 11:03:46 EDT 2011


From: Gonzalo Odiard <godiard at gmail.com>

If not disabled, a entry appear over the treeview at bottom, right
when the user type something and the widget have focus.
The ObjectChooser use the same object than the Journal.

Signed-off-by: Gonzalo Odiard <gonzalo at laptop.org>
---
 src/jarabe/desktop/activitieslist.py |    1 +
 src/jarabe/journal/listview.py       |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/jarabe/desktop/activitieslist.py b/src/jarabe/desktop/activitieslist.py
index b3b1f9d..7bf0960 100644
--- a/src/jarabe/desktop/activitieslist.py
+++ b/src/jarabe/desktop/activitieslist.py
@@ -116,6 +116,7 @@ class ActivitiesTreeView(gtk.TreeView):
         self.append_column(column)
 
         self.set_search_column(ListModel.COLUMN_TITLE)
+        self.set_enable_search(False)
 
     def __erase_activated_cb(self, cell_renderer, bundle_id):
         self.emit('erase-activated', bundle_id)
diff --git a/src/jarabe/journal/listview.py b/src/jarabe/journal/listview.py
index a0ceccc..57836f2 100644
--- a/src/jarabe/journal/listview.py
+++ b/src/jarabe/journal/listview.py
@@ -44,6 +44,7 @@ class TreeView(gtk.TreeView):
     def __init__(self):
         gtk.TreeView.__init__(self)
         self.set_headers_visible(False)
+        self.set_enable_search(False)
 
     def do_size_request(self, requisition):
         # HACK: We tell the model that the view is just resizing so it can
-- 
1.7.4.4



More information about the Sugar-devel mailing list