2003-11-05 Tim Waugh <twaugh@redhat.com>

* src/PlaceView.py (PlaceView.goto): Scroll to found item.
        * src/SourceView.py (SourceView.goto): Likewise.
        * src/MediaView.py (MediaView.goto): Likewise.

        * src/Find.py (FindBase.show): Have the GtkEntry widget grab focus
        when find dialog is displayed.


svn: r2319
This commit is contained in:
Tim Waugh
2003-11-05 18:57:47 +00:00
parent 1f9b8dafdd
commit 9b5aafc260
5 changed files with 23 additions and 3 deletions

View File

@ -96,7 +96,11 @@ class SourceView:
self.db = db
def goto(self,id):
self.list.get_selection().select_iter(self.map[id])
iter = self.map[id]
self.list.get_selection().select_iter(iter)
itpath = self.model.get_path (iter)
col = self.list.get_column (0)
self.list.scroll_to_cell (itpath, col, gtk.TRUE, 0.5, 0)
def load_sources(self):
self.model = gtk.ListStore(gobject.TYPE_STRING, gobject.TYPE_STRING,