+2008-07-11 Nickolay V. Shmyrev <nshmyrev@yandex.ru>
+
+ * backend/comics/comics-document.c (comics_document_load):
+ * backend/comics/comicsdocument.evince-backend.in:
+ * configure.ac:
+ * thumbnailer/evince-thumbnailer-comics.schemas.in:
+
+ Added support for 7-zip based cb7 comic book. Patch by
+ Kartik Rustagi. Fixes bug #532312.
+
2008-06-24 Bastien Nocera <hadess@hadess.net>
* shell/ev-window.c: Use Alt+Left to rotate left, and Alt+Right
list_files_command =
g_strdup_printf ("zipinfo -1 -- %s", quoted_file);
comics_document->regex_arg = TRUE;
+ } else if (!strcmp (mime_type, "application/x-cb7")) {
+ comics_document->extract_command =
+ g_strdup ("7zr x -so");
+ list_files_command =
+ g_strdup_printf ("7zr l -- %s", quoted_file);
+ comics_document->regex_arg = TRUE;
}
g_object_unref (file_info);
[Evince Backend]
Module=comicsdocument
_TypeDescription=Comic Books
-MimeType=application/x-cbr;application/x-cbz;
+MimeType=application/x-cbr;application/x-cbz;application/x-cb7;
EVINCE_MIME_TYPES="${EVINCE_MIME_TYPES}image/tiff;"
fi
if test "x$enable_comics" = "xyes"; then
- EVINCE_MIME_TYPES="${EVINCE_MIME_TYPES}application/x-cbr;application/x-cbz;"
+ EVINCE_MIME_TYPES="${EVINCE_MIME_TYPES}application/x-cbr;application/x-cbz;application/x-cb7"
fi
if test "x$enable_pixbuf" = "xyes"; then
EVINCE_MIME_TYPES="${EVINCE_MIME_TYPES}image/*;"
</locale>
</schema>
+
+ <schema>
+ <key>/schemas/desktop/gnome/thumbnailers/application@x-cb7/enable</key>
+ <applyto>/desktop/gnome/thumbnailers/application@x-cb7/enable</applyto>
+ <owner>evince</owner>
+ <type>bool</type>
+ <default>true</default>
+ <locale name="C">
+ <short></short>
+ <long></long>
+ </locale>
+ </schema>
+
+
+ <schema>
+ <key>/schemas/desktop/gnome/thumbnailers/application@x-cb7/command</key>
+ <applyto>/desktop/gnome/thumbnailers/application@x-cb7/command</applyto>
+ <owner>evince</owner>
+ <type>string</type>
+ <default>evince-thumbnailer -s %s %u %o</default>
+ <locale name="C">
+ <short></short>
+ <long></long>
+ </locale>
+ </schema>
+
</schemalist>
</gconfschemafile>