Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TamTamEdit.activity/Edit/MainWindow.py
diff options
context:
space:
mode:
authorPootle Translation <pootle@dev.laptop.org>2008-05-27 04:30:07 (GMT)
committer Pootle Translation <pootle@dev.laptop.org>2008-05-27 04:30:07 (GMT)
commit8900ef5f0fcf5005234f25023acdced1a37387de (patch)
tree579559a2b4d3851865d91eab115e0cf78191f312 /TamTamEdit.activity/Edit/MainWindow.py
parent89767dd1d5d472fc9f13139497ea575e30330af8 (diff)
parentd898ded314ef368770fd8a01cb7ef8cef1065dd3 (diff)
Merge branch 'master' of git+ssh://dev.laptop.org/git/projects/tamtam
Diffstat (limited to 'TamTamEdit.activity/Edit/MainWindow.py')
-rw-r--r--TamTamEdit.activity/Edit/MainWindow.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/TamTamEdit.activity/Edit/MainWindow.py b/TamTamEdit.activity/Edit/MainWindow.py
index 4842013..bb81391 100644
--- a/TamTamEdit.activity/Edit/MainWindow.py
+++ b/TamTamEdit.activity/Edit/MainWindow.py
@@ -616,7 +616,9 @@ class MainWindow( gtk.EventBox ):
self.handleRewind()
self.audioRecordState = True
- self.audioFileName = chooser.get_filename()
+ head, tail = os.path.split(chooser.get_filename())
+ tailfilt = '_'.join(tail.split())
+ self.audioFileName = os.path.join(head, tailfilt)
if self.audioFileName[-4:] != '.ogg':
self.audioFileName += '.ogg'
@@ -2141,7 +2143,7 @@ class instrumentPalette( Popup ):
self.volumeSlider.set_inverted(False)
self.volumeSlider.set_draw_value(False)
- self.categories = [cat.capitalize() for cat in Config.CATEGORIES]
+ self.categories = [cat.capitalize() for cat in Config.CATEGORIES if cat != 'mysounds']
self.instruments = self.getInstruments()
self.categoryBox = BigComboBox()
@@ -2218,7 +2220,7 @@ class instrumentPalette( Popup ):
def getInstruments(self, category = 'all'):
if category == 'all':
- return sorted([instrument for instrument in self.instrumentDB.instNamed.keys() if not instrument.startswith('drum') and not instrument.startswith('guid')])
+ return sorted([instrument for instrument in self.instrumentDB.instNamed.keys() if not instrument.startswith('drum') and not instrument.startswith('guid') and not instrument.startswith('mic') and not instrument.startswith('lab')])
else:
return sorted([instrument for instrument in self.instrumentDB.instNamed.keys() if not instrument.startswith('drum') and not instrument.startswith('guid') and self.instrumentDB.instNamed[instrument].category == category])