Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/backend
diff options
context:
space:
mode:
Diffstat (limited to 'backend')
-rw-r--r--backend/Makefile.am6
-rw-r--r--backend/ev-document-factory.c3
2 files changed, 7 insertions, 2 deletions
diff --git a/backend/Makefile.am b/backend/Makefile.am
index 30318d8..917215a 100644
--- a/backend/Makefile.am
+++ b/backend/Makefile.am
@@ -45,9 +45,13 @@ libevbackend_la_SOURCES= \
libevbackend_la_LIBADD = \
$(top_builddir)/pdf/libpdfdocument.la \
- $(top_builddir)/pixbuf/libpixbufdocument.la \
$(top_builddir)/ps/libpsdocument.la
+if ENABLE_PIXBUF
+libevbackend_la_LIBADD += \
+ $(top_builddir)/pixbuf/libpixbufdocument.la
+endif
+
if ENABLE_DJVU
libevbackend_la_LIBADD += \
$(top_builddir)/djvu/libgtkdjvu.la
diff --git a/backend/ev-document-factory.c b/backend/ev-document-factory.c
index e73344a..7071f84 100644
--- a/backend/ev-document-factory.c
+++ b/backend/ev-document-factory.c
@@ -123,10 +123,11 @@ ev_document_type_get_from_mime (const char *mime_type)
return document_types[i].document_type_factory_callback();
}
}
-
+#ifdef ENABLE_PIXBUF
if (mime_type_supported_by_gdk_pixbuf (mime_type)) {
return pixbuf_document_get_type ();
}
+#endif
return G_TYPE_INVALID;
}