From 507f8afd1d5a92ad746528b7a2dfaaa524c0ccc1 Mon Sep 17 00:00:00 2001 From: Aleksey Lim Date: Wed, 15 Apr 2009 23:34:52 +0000 Subject: Switch to sugar-port --- (limited to 'sound.py') 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 -- cgit v0.9.1