+ def threadfun(wnd, artist_id):
+ try:
+ artist = jamaendo.get_artist(artist_id)
+ def oncomplete(wnd, artist):
+ wnd.open_item(artist)
+ hildon.hildon_gtk_window_set_progress_indicator(wnd, 0)
+ gobject.idle_add(oncomplete, wnd, artist)
+ except:
+ def onfail(wnd):
+ hildon.hildon_gtk_window_set_progress_indicator(wnd, 0)
+ gobject.idle_add(onfail, wnd)
+ hildon.hildon_gtk_window_set_progress_indicator(self, 1)
+ thread.start_new_thread(threadfun, (self, int(self.album.artist_id)))