Tooltip correct attributes
We should use the correct attributes for setting the list tooltip
This commit is contained in:
parent
b8c007d2ea
commit
76b9d428b7
|
@ -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("&", "&"),
|
||||
attrs[2].replace("&", "&"),
|
||||
attrs[3].replace("&", "&"))
|
||||
(attrs[0].replace("&", "&"),
|
||||
attrs[1].replace("&", "&"),
|
||||
attrs[2].replace("&", "&"))
|
||||
)
|
||||
|
||||
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
|
||||
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue