[gnome-autoar] autoar-mime-types: update supported mime types with shared-mime-info
- From: Carlos Soriano <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-autoar] autoar-mime-types: update supported mime types with shared-mime-info
- Date: Fri, 3 Mar 2017 09:53:33 +0000 (UTC)
commit 4cda32a73314a68ea278fe15107c8d85fc4d1f7c
Author: Carlos Soriano <csoriano gnome org>
Date: Wed Mar 1 18:04:57 2017 +0100
autoar-mime-types: update supported mime types with shared-mime-info
We were using a mix of supported mime types, that some weren't super
types in shared-mime-info.
Use only super types and in an upcoming patch we will use the right
function to check whether a mime type is a super type of another.
https://bugzilla.gnome.org/show_bug.cgi?id=779431
gnome-autoar/autoar-mime-types.c | 12 ++----------
1 files changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/gnome-autoar/autoar-mime-types.c b/gnome-autoar/autoar-mime-types.c
index 620db7a..cb30eab 100644
--- a/gnome-autoar/autoar-mime-types.c
+++ b/gnome-autoar/autoar-mime-types.c
@@ -25,27 +25,19 @@
static gchar *supported_mime_types[] = {
"application/x-7z-compressed",
- "application/x-7z-compressed-tar",
"application/x-bzip",
- "application/x-bzip-compressed-tar",
"application/x-compress",
- "application/x-compressed-tar",
"application/x-cpio",
- "application/x-gzip",
+ "application/gzip",
"application/x-lha",
"application/x-lzip",
- "application/x-lzip-compressed-tar",
"application/x-lzma",
- "application/x-lzma-compressed-tar",
- "application/x-rar",
+ "application/vnd.rar",
"application/x-tar",
- "application/x-tarz",
"application/x-xar",
"application/x-xz",
- "application/x-xz-compressed-tar",
"application/zip",
"application/gzip",
- "application/bzip2",
NULL
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]