Tooltip correct attributes

We should use the correct attributes for setting the list tooltip
This commit is contained in:
Bryan Schumaker 2010-11-27 19:45:14 -05:00
parent b8c007d2ea
commit 76b9d428b7
2 changed files with 11 additions and 10 deletions

View File

@ -96,22 +96,23 @@ class ListView(gtk.TreeView):
iter = self.filter_model.get_iter(row[0])
id = self.filter_model[iter][0]
attrs = get_attrs(id, "art", "title", "artist", "album", "year", "lenstr", "count")
#attrs = get_attrs(id, "art", "title", "artist", "album", "year", "lenstr", "count")
attrs = get_attrs(id, "title", "artist", "album", "year", "lenstr", "count")
art = image.Image()
art.set_from_file(attrs[0])
art.set_height(52)
tip.set_icon(art.get_pixbuf())
#art = image.Image()
#art.set_from_file(attrs[0])
#art.set_height(52)
#tip.set_icon(art.get_pixbuf())
tip.set_markup("<b>%s</b>\nby %s\nfrom %s" %
(attrs[1].replace("&", "&amp;"),
attrs[2].replace("&", "&amp;"),
attrs[3].replace("&", "&amp;"))
(attrs[0].replace("&", "&amp;"),
attrs[1].replace("&", "&amp;"),
attrs[2].replace("&", "&amp;"))
)
extra = gtk.Label()
extra.set_markup(" Year: %s\n Length: %s\n Play count: %s" %
(attrs[4], attrs[5], attrs[6]) )
(attrs[3], attrs[4], attrs[5]) )
tip.set_custom(extra)
return True

View File

@ -8,7 +8,7 @@ do_pause = False
def check_pause(*args):
global do_pause
if do_pause == True:
libsaria.components.pause()
libsaria.controls.pause()
do_pause = False
def set_pause(*args):