[gnome-subtitles] List rmvb files in the Open Video dialog (bug #607228) Also added a filter for Audio files.
- From: Pedro Daniel da Rocha Melo e Castro <pcastro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-subtitles] List rmvb files in the Open Video dialog (bug #607228) Also added a filter for Audio files.
- Date: Sat, 18 Jun 2011 15:05:52 +0000 (UTC)
commit 4c68c6dc68b825c313b90794b040f97dae5ae854
Author: Pedro Castro <mail pedrocastro org>
Date: Sat Jun 18 16:05:39 2011 +0100
List rmvb files in the Open Video dialog (bug #607228)
Also added a filter for Audio files.
src/GnomeSubtitles/Dialog/VideoOpenDialog.cs | 25 +++++++++++++++++--------
1 files changed, 17 insertions(+), 8 deletions(-)
---
diff --git a/src/GnomeSubtitles/Dialog/VideoOpenDialog.cs b/src/GnomeSubtitles/Dialog/VideoOpenDialog.cs
index 47b3cb2..ac4d68c 100644
--- a/src/GnomeSubtitles/Dialog/VideoOpenDialog.cs
+++ b/src/GnomeSubtitles/Dialog/VideoOpenDialog.cs
@@ -53,19 +53,28 @@ public class VideoOpenDialog : GladeDialog {
private void SetFilters () {
- /* First filter corresponds to all files */
- FileFilter allFilesFilter = new FileFilter();
- allFilesFilter.Name = Catalog.GetString("All Files");
- allFilesFilter.AddPattern("*");
- dialog.AddFilter(allFilesFilter);
-
- /* Second filter corresponds to video files */
+ /* Video files */
FileFilter videoFilesFilter = new FileFilter();
videoFilesFilter.Name = Catalog.GetString("All Video Files");
videoFilesFilter.AddMimeType("video/*");
- videoFilesFilter.AddMimeType("application/vnd.rn-realmedia-vbr"); //support for rmvb files
+ videoFilesFilter.AddMimeType("application/vnd.rn-realmedia"); //support for real media files (currently includes rmvb)
+ videoFilesFilter.AddMimeType("application/vnd.rn-realmedia-vbr"); //this should be the real mime type for rmvb files
dialog.AddFilter(videoFilesFilter);
+ /* Audio files */
+ FileFilter audioFilesFilter = new FileFilter();
+ audioFilesFilter.Name = Catalog.GetString("All Audio Files");
+ audioFilesFilter.AddMimeType("audio/*");
+ audioFilesFilter.AddMimeType("application/ogg");
+ dialog.AddFilter(audioFilesFilter);
+
+
+ /* All files */
+ FileFilter allFilesFilter = new FileFilter();
+ allFilesFilter.Name = Catalog.GetString("All Files");
+ allFilesFilter.AddPattern("*");
+ dialog.AddFilter(allFilesFilter);
+
/* Set active filter */
dialog.Filter = videoFilesFilter;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]