X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Falbum_art_panel.py;fp=src%2Falbum_art_panel.py;h=243f3444d02b6d45d23cce769ff3d2730972c54f;hb=503f4323fb058be5581a7cc7742d7dd60b4ca50b;hp=96b6758d8c23a977e7024c963a04528d4f775583;hpb=29f207484fabdde57b68d0916849b47e853d6ddc;p=mussorgsky diff --git a/src/album_art_panel.py b/src/album_art_panel.py index 96b6758..243f344 100644 --- a/src/album_art_panel.py +++ b/src/album_art_panel.py @@ -91,8 +91,11 @@ class MussorgskyAlbumArtPanel (hildon.StackableWindow): def row_activated_cb (self, treeview, path, view_colum): it = treeview.get_model ().get_iter (path) - album = treeview.get_model ().get_value (it, 3) - artist = treeview.get_model ().get_value (it, 2) + artist = treeview.get_model ().get_value (it, 3) + album = treeview.get_model ().get_value (it, 2) + print artist + if (artist.find ('|') != -1): + artist = "Various artists" dialog = AlbumArtSelectionDialog (self, artist, album, 5) dialog.show_all () @@ -111,7 +114,7 @@ class MussorgskyAlbumArtPanel (hildon.StackableWindow): if __name__ == "__main__": import random - artists_albums = [("Artist %d the greatest bolero singer in the universe" % i, "Album <%d>" % i) for i in range (0, 100)] + artists_albums = [("Artist %d|artist Y" % i, "Album <%d>" % i) for i in range (0, 10)] # Overwrite the get thumb path for testing def local_file (path):