diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2013-03-27 13:43:40 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2013-03-27 13:59:21 (GMT) |
commit | 90183d95e33ee73f29caefb642c5296b1d780212 (patch) | |
tree | 33585cd3408d1a648b7b9c275f937d3e0a0b16bb | |
parent | bd0842033bfc054ea5fa6219ae49a6b64e1af1de (diff) |
Show the first item in the treeview selected at start
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
-rw-r--r-- | playlist.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/playlist.py b/playlist.py index d295f79..74a5370 100644 --- a/playlist.py +++ b/playlist.py @@ -184,6 +184,9 @@ class PlayList(Gtk.ScrolledWindow): logging.info('%s tracks not found', len(missing_tracks)) self.emit('missing-tracks', missing_tracks) + # set the focus in the first row + self._set_cursor(0) + def update(self): for tree_item, playlist_item in zip(self.treemodel, self._items): tree_item[2] = playlist_item['available'] = \ |