diff options
author | Aleksey Lim <alsroot@member.fsf.org> | 2009-04-15 23:34:52 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@member.fsf.org> | 2009-04-15 23:34:52 (GMT) |
commit | 507f8afd1d5a92ad746528b7a2dfaaa524c0ccc1 (patch) | |
tree | 256bd99a6ec95594ed09d873c57f2e36a4c2794f /sound.py | |
parent | 64cb9ab01d16afb4d56d811d0fbf6b12f644ad7c (diff) |
Switch to sugar-port
Diffstat (limited to 'sound.py')
-rw-r--r-- | sound.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -19,6 +19,8 @@ import shutil from glob import glob from gettext import gettext as _ +import port.chooser as chooser + import theme from utils import * from sugar.activity.activity import get_bundle_path @@ -85,7 +87,8 @@ class CustomSound(Sound): Sound.__init__(self, name, None, None, theme.SOUND_CUSTOM) def select(self): - sound = theme.choose_audio(lambda jobject: JournalSound(jobject)) + sound = chooser.pick(lambda jobject: JournalSound(jobject), + what=chooser.AUDIO) if sound: sound.select() return sound |