diff options
author | Muriel de Souza Godoi <muriel@laptop.org> | 2007-11-29 18:26:26 (GMT) |
---|---|---|
committer | Muriel de Souza Godoi <muriel@laptop.org> | 2007-11-29 18:26:26 (GMT) |
commit | 635e5e5ae55b00e4085a838beae7fd30bd8a3124 (patch) | |
tree | 0c0bcd9074579e5a5305fe9cfb5689da34dd22d4 /createcardpanel.py | |
parent | dad22b884a1850563e115b7ec6dcdd06d39e276a (diff) |
Adds support to record ogg files and add mime-type icon
Diffstat (limited to 'createcardpanel.py')
-rw-r--r-- | createcardpanel.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/createcardpanel.py b/createcardpanel.py index 626c4f4..a1782a4 100644 --- a/createcardpanel.py +++ b/createcardpanel.py @@ -19,7 +19,7 @@ import gtk from os import environ -from os.path import join, dirname +from os.path import join, dirname, basename import shutil import tempfile @@ -280,7 +280,7 @@ class CardEditor(gtk.EventBox): dst = join(self.temp_folder, basename(index)) shutil.copy(index, dst) self.set_snd(dst) - _logger.error('Audio Loaded: '+dst) + _logger.debug('Audio Loaded: '+dst) def set_snd(self, snd): self.snd = snd @@ -291,6 +291,7 @@ class CardEditor(gtk.EventBox): def clean(self): self.textentry.set_text('') self.card.set_pixbuf(None) + self.snd = None self.emit('has-text', False) self.emit('has-picture', False) |