]> www.fi.muni.cz Git - evince.git/blobdiff - backend/ev-document-factory.c
Fix memory management
[evince.git] / backend / ev-document-factory.c
index 7fed2b9a6b2ca5b88cbc95807c1757da7d331541..a695c452f6c8b171f116292e962fe9c119acef38 100644 (file)
@@ -28,7 +28,9 @@
 #include "ev-poppler.h"
 #include "pixbuf-document.h"
 #include "tiff-document.h"
+#ifdef ENABLE_PS
 #include "ps-document.h"
+#endif
 #ifdef ENABLE_DVI
 #include "dvi-document.h"
 #endif
@@ -53,10 +55,12 @@ const EvDocumentType document_types[] = {
        /* PDF: */
        {"application/pdf",            EV_BACKEND_PDF,  pdf_document_get_type},
 
+#ifdef ENABLE_PS
        /* Postscript: */
        {"application/postscript",     EV_BACKEND_PS,   ps_document_get_type},
        {"application/x-gzpostscript", EV_BACKEND_PS,   ps_document_get_type},
        {"image/x-eps",                EV_BACKEND_PS,   ps_document_get_type},
+#endif
 
 #ifdef ENABLE_TIFF
        /* Tiff: */
@@ -73,10 +77,10 @@ const EvDocumentType document_types[] = {
        {"application/x-dvi",          EV_BACKEND_DVI,  dvi_document_get_type},
 #endif
 
-#ifdef ENABLE_DVI
+#ifdef ENABLE_COMICS
        /* cbr/cbz: */
-       {"application/cbr",           EV_BACKEND_COMICS,  comics_document_get_type},
-       {"application/cbz",           EV_BACKEND_COMICS,  comics_document_get_type},
+       {"application/x-cbr",           EV_BACKEND_COMICS,  comics_document_get_type},
+       {"application/x-cbz",           EV_BACKEND_COMICS,  comics_document_get_type},
 #endif
 };