+ def album_art_cell_data_cb (self, column, cell, model, iter):
+ pixbuf, album, not_first_time = model.get (iter, 1, 3, 4)
+ if (not_first_time):
+ if (pixbuf == None):
+ #print "Calling album art cell data cb", model.get (iter, 3)
+ album_art_path = getCoverArtThumbFileName (album)
+ if (os.path.exists (album_art_path)):
+ pxb = gtk.gdk.pixbuf_new_from_file_at_size (album_art_path, 64, 64)
+ model.set (iter, 1, pxb)
+ else:
+ #print "Cannot find thumbnail in '%s'" % (album_art_path)
+ model.set (iter, 1, EMPTY_PIXBUF)
+
+ else:
+ model.set (iter, 4, True)
+