diff options
author | Nickolay V. Shmyrev <nshmyrev@yandex.ru> | 2005-11-14 13:21:13 (GMT) |
---|---|---|
committer | Nickolay V. Shmyrev <nshmyrev@src.gnome.org> | 2005-11-14 13:21:13 (GMT) |
commit | 30582eef6d8c325d026e7db0301921ddba21dfec (patch) | |
tree | bad060c2e88f760d095a403156f615dfd6e7e205 /backend/ev-document-factory.c | |
parent | ae3f65853c9a38b242143559ad15b6df1f5244a6 (diff) |
New CBR/CBZ backend for comic books.
2005-11-14 Nickolay V. Shmyrev <nshmyrev@yandex.ru>
* Makefile.am:
* backend/Makefile.am:
* backend/ev-document-factory.c:
* backend/ev-document-factory.h:
* comics/Makefile.am:
* comics/comics-document.c: (G_DEFINE_TYPE_WITH_CODE),
(comics_document_load), (comics_document_save),
(comics_document_get_n_pages), (comics_document_get_page_size),
(get_page_size_area_prepared_cb), (comics_document_render_pixbuf) (render_pixbuf_size_prepared_cb), (comics_document_finalize),
(comics_document_class_init), (comics_document_can_get_text),
(comics_document_get_info), (comics_document_document_iface_init),
(comics_document_init), (get_supported_image_extensions),
(comics_document_thumbnails_get_geometry),
(comics_document_thumbnails_get_thumbnail),
(comics_document_thumbnails_get_dimensions),
(comics_document_document_thumbnails_iface_init), (extract_argv):
* comics/comics-document.h:
* comics/ev-cbr-mime.xml:
* configure.ac:
* po/POTFILES.in:
* shell/ev-application.c: (ev_application_register_service):
* shell/ev-document-types.c: (ev_document_types_add_filters):
* thumbnailer/Makefile.am:
* thumbnailer/evince-thumbnailer-comics.schemas.in:
New CBR/CBZ backend for comic books.
Diffstat (limited to 'backend/ev-document-factory.c')
-rw-r--r-- | backend/ev-document-factory.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/backend/ev-document-factory.c b/backend/ev-document-factory.c index 0f85c7c..7fed2b9 100644 --- a/backend/ev-document-factory.c +++ b/backend/ev-document-factory.c @@ -35,6 +35,9 @@ #ifdef ENABLE_DJVU #include "djvu-document.h" #endif +#ifdef ENABLE_COMICS +#include "comics-document.h" +#endif #include <string.h> @@ -69,6 +72,12 @@ const EvDocumentType document_types[] = { /* dvi: */ {"application/x-dvi", EV_BACKEND_DVI, dvi_document_get_type}, #endif + +#ifdef ENABLE_DVI + /* cbr/cbz: */ + {"application/cbr", EV_BACKEND_COMICS, comics_document_get_type}, + {"application/cbz", EV_BACKEND_COMICS, comics_document_get_type}, +#endif }; #ifdef ENABLE_PIXBUF |