summaryrefslogtreecommitdiff
path: root/libdocument/ev-document-factory.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-12-09 16:02:36 +0100
committerinfirit <[email protected]>2014-12-09 23:02:28 +0100
commit30a41d9c9cb55687675d00b98835a5b54c120b43 (patch)
treef552ab311fdb7799e9b4a009d298fc95ebb9426d /libdocument/ev-document-factory.c
parent0412a5fb05ca8726129a5f6f4d2ef599e804e444 (diff)
downloadatril-30a41d9c9cb55687675d00b98835a5b54c120b43.tar.bz2
atril-30a41d9c9cb55687675d00b98835a5b54c120b43.tar.xz
libdocument: Add xz compression support
Taken from evince commit: 38cfc027fc96ac19452c3138614e2c8deff63633 From: Christian Persch <[email protected]>
Diffstat (limited to 'libdocument/ev-document-factory.c')
-rw-r--r--libdocument/ev-document-factory.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libdocument/ev-document-factory.c b/libdocument/ev-document-factory.c
index 4d5378f6..c77b8d04 100644
--- a/libdocument/ev-document-factory.c
+++ b/libdocument/ev-document-factory.c
@@ -99,6 +99,8 @@ get_compression_from_mime_type (const gchar *mime_type)
return EV_COMPRESSION_GZIP;
else if (g_ascii_strcasecmp (type, "bz") == 0)
return EV_COMPRESSION_BZIP2;
+ else if (g_ascii_strcasecmp (type, "xz") == 0)
+ return EV_COMPRESSION_LZMA;
}
return EV_COMPRESSION_NONE;