X-Git-Url: http://git.maemo.org/git/?p=jamaendo;a=blobdiff_plain;f=jamaui%2Fshowalbum.py;h=43256221f8e94793060c25ee9b8bd45a2e05a088;hp=bfe6e8fdb67a48b5b4b96656c79c2776c58b43a5;hb=facd2a5710fb05ac80d55ed8e1af8184fb496c02;hpb=ef38e67e9c769af43ed190f810daf8c2e164a125
diff --git a/jamaui/showalbum.py b/jamaui/showalbum.py
index bfe6e8f..4325622 100644
--- a/jamaui/showalbum.py
+++ b/jamaui/showalbum.py
@@ -22,6 +22,7 @@
# (based on http://pygstdocs.berlios.de/pygst-tutorial/seeking.html)
#
import gtk
+import cgi
import hildon
import jamaendo
from playerwindow import open_playerwindow
@@ -61,7 +62,7 @@ class ShowAlbum(hildon.StackableWindow):
vbox2 = gtk.VBox()
self.albumname = gtk.Label()
- self.albumname.set_markup('%s'%(album.name))
+ self.albumname.set_markup('%s'%(cgi.escape(album.name)))
self.trackarea = hildon.PannableArea()
self.tracks = TrackList(numbers=True)
@@ -90,10 +91,8 @@ class ShowAlbum(hildon.StackableWindow):
self.create_menu()
- self.show_all()
-
def create_menu(self):
- def on_player():
+ def on_player(*args):
from playerwindow import open_playerwindow
open_playerwindow()
self.menu = hildon.AppMenu()
@@ -150,7 +149,8 @@ class ShowAlbum(hildon.StackableWindow):
def row_activated(self, treeview, path, view_column):
_id = self.tracks.get_track_id(path)
- log.debug("clicked %s", _id)
+ track = jamaendo.get_track(_id)
+ self.open_item(track)
def open_item(self, item):
if isinstance(item, jamaendo.Album):