Remove tag labels

I was having trouble with the artist / album / title labels, so they
have been removed to give more room for lyrics.
This commit is contained in:
Bryan Schumaker 2010-11-27 20:06:48 -05:00
parent 594f2dd054
commit cacf9a4b89
1 changed files with 5 additions and 14 deletions

View File

@ -22,18 +22,6 @@ lyrics.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
page.pack_start(image.AlbumArt(), False, False)
tags = gtk.ScrolledWindow()
tags.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
view = gtk.Viewport()
view.set_shadow_type(gtk.SHADOW_NONE)
tag_box = gtk.VBox(True)
tag_box.pack_start(label.TitleLabel())
tag_box.pack_start(label.ArtistLabel())
tag_box.pack_start(label.AlbumLabel())
view.add(tag_box)
tags.add(view)
page.pack_start(tags)
text.set_editable(False)
lyrics.add(text)
page.pack_start(lyrics)
@ -94,8 +82,11 @@ def set_lyrics(filepath):
artist, title = libsaria.sources.library.get_attrs(id, "artist", "title")
cached = cache[artist]
file = cached.get("%s.txt" % title, fetch_lyrics, artist, title)
fin = open(file)
buffer.set_text(fin.read())
if file != None:
fin = open(file)
buffer.set_text(fin.read())
else:
buffer.set_text("")
def start():
footer.add_page("Lyrics", page)