diff options
author | Aleksey Lim <alsroot@member.fsf.org> | 2009-01-19 19:20:15 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@member.fsf.org> | 2009-01-21 11:51:11 (GMT) |
commit | 5a6b5821d3403bfd0ee41781bf3fe6e645d7a027 (patch) | |
tree | 1fdf643fd2b26dfe9c98e69a9e72da8e4389a41c /Sound.py | |
parent | 1b5f8bdd6ccb09b7f6f2914cf9044d294e16be4a (diff) |
...
Diffstat (limited to 'Sound.py')
-rw-r--r-- | Sound.py | 28 |
1 files changed, 14 insertions, 14 deletions
@@ -21,31 +21,27 @@ import Theme from Utils import * from sugar.activity.activity import get_bundle_path -sound_icon = Theme.pixmap('icons/sound_icon.png') +speaker = Theme.pixmap('images/sounds/speaker.png') THEMES = ( - { 'name' : _('Custom'), - 'pixbuf': sound_icon, - 'sound' : None }, - { 'name' : _('Gobble'), - 'pixbuf': sound_icon, + 'pixbuf': speaker, 'sound' : 'sounds/gobble.wav' }, - { 'name' : _('Funk'), - 'pixbuf': sound_icon, + 'pixbuf': speaker, 'sound' : 'sounds/funk.wav' }, - { 'name' : _('Giggle'), - 'pixbuf': sound_icon, + 'pixbuf': speaker, 'sound' : 'sounds/giggle.wav' }, - { 'name' : _('Jungle'), - 'pixbuf': sound_icon, + 'pixbuf': speaker, 'sound' : 'sounds/jungle.wav' }, - { 'name' : _('Mute'), - 'pixbuf': sound_icon, + 'pixbuf': Theme.pixmap('images/sounds/mute.png'), + 'sound' : None }, + None, + { 'name' : _('Custom'), + 'pixbuf': Theme.pixmap('images/sounds/custom.png'), 'sound' : None } ) theme = FileInstanceVariable(THEMES[0]) @@ -63,6 +59,10 @@ def change(a_theme): if not a_theme: return theme.set(a_theme) + + import logging + logging.error(theme['name']) + if not playing.get(): return player.set_state(gst.STATE_NULL) |