X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;ds=sidebyside;f=backend%2Fev-document-factory.c;h=0f85c7c5ee4bc649fce94f16ac0a9ec7a2dfa850;hb=8e6d88c8b0d2871ec61a42f38352425122281be6;hp=e73344a062ff2b2db560165612db366c9e0a4f6d;hpb=0848b6e8ad61c6074c73b0be2933a2c943e5fc51;p=evince.git diff --git a/backend/ev-document-factory.c b/backend/ev-document-factory.c index e73344a0..0f85c7c5 100644 --- a/backend/ev-document-factory.c +++ b/backend/ev-document-factory.c @@ -71,6 +71,7 @@ const EvDocumentType document_types[] = { #endif }; +#ifdef ENABLE_PIXBUF /* Would be nice to have this in gdk-pixbuf */ static gboolean mime_type_supported_by_gdk_pixbuf (const gchar *mime_type) @@ -108,7 +109,7 @@ mime_type_supported_by_gdk_pixbuf (const gchar *mime_type) return retval; } - +#endif static GType ev_document_type_get_from_mime (const char *mime_type) @@ -123,10 +124,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; }