Log In
New Account
  
Home My Page Project Cloud Code Snippets Project Openings Hermes
Summary Lists News SCM
authorAndrew Flegg <andrew@bleb.org>
Tue, 6 Jul 2010 20:29:55 +0000 (21:29 +0100)
committerAndrew Flegg <andrew@bleb.org>
Tue, 6 Jul 2010 20:29:55 +0000 (21:29 +0100)
package/src/org/maemo/hermes/gui/mapcontact.py
package/src/org/maemo/hermes/gui/searchablelist.py

index a603066..f0ad1fe 100644 (file)
@@ -66,10 +66,12 @@ class MapContact(SearchableList):
             path = self.treestore.get_path(mapped_iter)
             self.treeview.get_selection().select_path(path)
             self.treeview.scroll_to_cell(path)
+            self.treeview.set_cursor(path, None, False)
         elif best_iter:
             path = self.treestore.get_path(best_iter)
             self.treeview.get_selection().unselect_all()
             self.treeview.scroll_to_cell(path)
+            self.treeview.set_cursor(path, None, False)
         else:
             self.treeview.get_selection().unselect_all()
           
index c2c203f..3599853 100644 (file)
@@ -39,10 +39,13 @@ class SearchableList(hildon.PannableArea):
         #close.connect('clicked', self._hide_search)
         #real_hbox.pack_end(close, False, False, 0)
 
+        (path, col) = self.treeview.get_cursor()
         self.filter = self.treeview.get_model().filter_new()
         self.filter.set_visible_func(self._visible_func, self._search_column)
         self.treeview.connect('key-press-event', self._on_key_press)
         self.treeview.set_model(self.filter)
+        if path:
+            self.treeview.scroll_to_cell(path)
         real_hbox.show_all()
 
         return self.hbox_entry_filter

Terms of Use    Privacy Policy    Contribution Guidelines    Feedback

Powered By GForge Collaborative Development Environment