X-Git-Url: http://git.maemo.org/git/?p=jamaendo;a=blobdiff_plain;f=jamaui%2Fplayerwindow.py;h=2fd350a13ecd190c0dcc42ac1715818bfcbd695f;hp=c9b965b438de554534f2b7d8c70d77d6b0e654d0;hb=61536ca548691b15e7f63340a0fbfb5a3055d5be;hpb=f83270c7ae6fde54870169438a1ec1988758d329 diff --git a/jamaui/playerwindow.py b/jamaui/playerwindow.py index c9b965b..2fd350a 100644 --- a/jamaui/playerwindow.py +++ b/jamaui/playerwindow.py @@ -23,7 +23,10 @@ # import gtk import gobject -import hildon +try: + import hildon +except: + import helldon as hildon import util import pango import jamaendo @@ -205,11 +208,11 @@ class PlayerWindow(hildon.StackableWindow): if self.playlist.radio_mode: ppstr = 'Radio: %s'%(cgi.escape(self.playlist.radio_name)) else: - ppstr = 'Track %s of %s'%(colors.SmallSystemFont, colors.SecondaryTextColor, int(playlist_pos)+1, playlist_size) + ppstr = 'Track %s of %s'%(colors.SmallSystemFont(), colors.SecondaryTextColor(), int(playlist_pos)+1, playlist_size) self.playlist_pos.set_markup(ppstr) - self.track.set_markup('%s'%(colors.LargeSystemFont, cgi.escape(track))) + self.track.set_markup('%s'%(colors.LargeSystemFont(), cgi.escape(track))) self.artist.set_markup('%s'%(cgi.escape(artist))) - self.album.set_markup('%s'%(colors.SecondaryTextColor, cgi.escape(album))) + self.album.set_markup('%s'%(colors.SecondaryTextColor(), cgi.escape(album))) def show_banner(self, message, timeout = 2000): banner = hildon.hildon_banner_show_information(self, '', message)