From 9198ad130e43f28a712b1f703b38a9634133a4ee Mon Sep 17 00:00:00 2001 From: Bryan Schumaker Date: Sat, 27 Nov 2010 19:45:14 -0500 Subject: [PATCH] Tooltip correct attributes We should use the correct attributes for setting the list tooltip --- ocarina/source.py | 19 ++++++++++--------- plugins/pause_after.py | 2 +- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/ocarina/source.py b/ocarina/source.py index 39e392f4..2d1adcb5 100644 --- a/ocarina/source.py +++ b/ocarina/source.py @@ -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("%s\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 diff --git a/plugins/pause_after.py b/plugins/pause_after.py index 88bfe4c4..50f582de 100644 --- a/plugins/pause_after.py +++ b/plugins/pause_after.py @@ -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):