[pitivi] medialibrary: Pythonic iteration over supported file formats
- From: Mathieu Duponchelle <mathieudu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] medialibrary: Pythonic iteration over supported file formats
- Date: Wed, 25 Dec 2013 20:30:51 +0000 (UTC)
commit 0c889215b717d75b5a5af63128298a787b574095
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Sat Dec 7 21:02:26 2013 +0100
medialibrary: Pythonic iteration over supported file formats
pitivi/medialibrary.py | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/pitivi/medialibrary.py b/pitivi/medialibrary.py
index 61c41ba..4f12329 100644
--- a/pitivi/medialibrary.py
+++ b/pitivi/medialibrary.py
@@ -468,9 +468,8 @@ class MediaLibraryWidget(Gtk.VBox, Loggable):
filt_supported = Gtk.FileFilter()
filt_known = Gtk.FileFilter()
filt_supported.set_name(_("Supported file formats"))
- for category in SUPPORTED_FILE_FORMATS:
- # Category can be "video", "audio", "image", "application"
- for mime in SUPPORTED_FILE_FORMATS[category]:
+ for category, mime_types in SUPPORTED_FILE_FORMATS.iteritems():
+ for mime in mime_types:
filt_supported.add_mime_type(category + "/" + mime)
filt_known.add_mime_type(category + "/" + mime)
# Also allow showing known but not reliable demuxers
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]