From 90183d95e33ee73f29caefb642c5296b1d780212 Mon Sep 17 00:00:00 2001 From: Gonzalo Odiard Date: Wed, 27 Mar 2013 13:43:40 +0000 Subject: Show the first item in the treeview selected at start Signed-off-by: Gonzalo Odiard --- 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'] = \ -- cgit v0.9.1