Added 'helldon' to transparently port the thing to the desktop :P
[jamaendo] / jamaui / search.py
index dd33b94..4ea8dd3 100644 (file)
 #  (based on http://pygstdocs.berlios.de/pygst-tutorial/seeking.html)
 #
 import gtk
-import hildon
+try:
+    import hildon
+except:
+    import helldon as hildon
 import jamaendo
 from playerwindow import open_playerwindow
 from showartist import ShowArtist
 from showalbum import ShowAlbum
+from albumlist import MusicList
 
 class SearchWindow(hildon.StackableWindow):
     def __init__(self):
@@ -39,6 +43,7 @@ class SearchWindow(hildon.StackableWindow):
 
         # Results list
         self.panarea = hildon.PannableArea()
+        self.musiclist = MusicList()
         self.result_store = gtk.ListStore(str, int)
         #self.result_store.append(['red'])
         self.result_view = gtk.TreeView(self.result_store)
@@ -87,7 +92,7 @@ class SearchWindow(hildon.StackableWindow):
         self.create_menu()
 
     def create_menu(self):
-        def on_player():
+        def on_player(*args):
             from playerwindow import open_playerwindow
             open_playerwindow()
         self.menu = hildon.AppMenu()