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:
parent
a3248b404e
commit
d3444c04db
|
@ -22,18 +22,6 @@ lyrics.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
|
||||||
|
|
||||||
page.pack_start(image.AlbumArt(), False, False)
|
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)
|
text.set_editable(False)
|
||||||
lyrics.add(text)
|
lyrics.add(text)
|
||||||
page.pack_start(lyrics)
|
page.pack_start(lyrics)
|
||||||
|
@ -94,8 +82,11 @@ def set_lyrics(filepath):
|
||||||
artist, title = libsaria.sources.library.get_attrs(id, "artist", "title")
|
artist, title = libsaria.sources.library.get_attrs(id, "artist", "title")
|
||||||
cached = cache[artist]
|
cached = cache[artist]
|
||||||
file = cached.get("%s.txt" % title, fetch_lyrics, artist, title)
|
file = cached.get("%s.txt" % title, fetch_lyrics, artist, title)
|
||||||
fin = open(file)
|
if file != None:
|
||||||
buffer.set_text(fin.read())
|
fin = open(file)
|
||||||
|
buffer.set_text(fin.read())
|
||||||
|
else:
|
||||||
|
buffer.set_text("")
|
||||||
|
|
||||||
def start():
|
def start():
|
||||||
footer.add_page("Lyrics", page)
|
footer.add_page("Lyrics", page)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user