X-Git-Url: http://git.maemo.org/git/?p=watersofshiloah;a=blobdiff_plain;f=src%2Fmormonchannel_gtk.py;h=722def80feb2588b114713d28541d136dd8d5542;hp=391c97979fb5b9027cf853de9d9a0e44f0790b91;hb=d2d201a76bf97989e369a06b77888bc7f89d7ab6;hpb=c74901446081ae54eeaeb0b39c4255eda2719c59 diff --git a/src/mormonchannel_gtk.py b/src/mormonchannel_gtk.py index 391c979..722def8 100755 --- a/src/mormonchannel_gtk.py +++ b/src/mormonchannel_gtk.py @@ -2,14 +2,12 @@ # -*- coding: utf-8 -*- """ -@bug presenter while playing and active, drag up, it shows play rather than pause, same with play control -@todo Restructure so there is a windows/ folder with a file per source -@todo Add additional sources -@todo Track recent -@todo Sequential playback -@todo Audio seek bar -@todo Persisted Pause -@todo Favorites +@bug Fix sizing of everything for Maemo +@bug For some reason, the back/close button doesn't work when I nest multiple levels +@todo Need to confirm id's are persistent (not just for todos but broken behavior on transition) + @todo Track recent + @todo Persisted Pause + @todo Favorites @todo Sleep timer @todo Reverse order option. Toggle between playing ascending/descending chronological order @todo Podcast integration @@ -17,6 +15,7 @@ from __future__ import with_statement +import os import gc import logging import ConfigParser @@ -49,10 +48,13 @@ class MormonChannelProgram(hildonize.get_app_class()): def __init__(self): super(MormonChannelProgram, self).__init__() - self._store = imagestore.ImageStore("../data", "../data") + currentPath = os.path.abspath(__file__) + storePath = os.path.join(os.path.split(os.path.dirname(currentPath))[0], "data") + self._store = imagestore.ImageStore(storePath, constants._cache_path_) self._index = stream_index.AudioIndex() self._player = player.Player(self._index) + self._store.start() self._index.start() try: if not hildonize.IS_HILDON_SUPPORTED: @@ -67,12 +69,14 @@ class MormonChannelProgram(hildonize.get_app_class()): self._osso_c = None self._deviceState = None - self._sourceSelector = windows.SourceSelector(self._player, self._store, self._index) + self._sourceSelector = windows.source.SourceSelector(self, self._player, self._store, self._index) self._sourceSelector.window.connect("destroy", self._on_destroy) + self._sourceSelector.window.set_default_size(400, 800) self._sourceSelector.show() self._load_settings() except: self._index.stop() + self._store.stop() raise def _save_settings(self): @@ -111,6 +115,7 @@ class MormonChannelProgram(hildonize.get_app_class()): self._save_settings() self._index.stop() + self._store.stop() try: self._deviceState.close()