Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sound.py
diff options
context:
space:
mode:
Diffstat (limited to 'sound.py')
-rw-r--r--sound.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/sound.py b/sound.py
index 8e90c44..b473ca9 100644
--- a/sound.py
+++ b/sound.py
@@ -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