X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=backend%2Fev-document-factory.c;h=0f85c7c5ee4bc649fce94f16ac0a9ec7a2dfa850;hb=1ba681aa9eb43a60f0a01c1939e70f9f6de755c7;hp=251ede3fc2af00e666007f569af12f36f0443fda;hpb=4684716c489657edf098565eb54bdf86bad1b45c;p=evince.git diff --git a/backend/ev-document-factory.c b/backend/ev-document-factory.c index 251ede3f..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; } @@ -138,7 +140,7 @@ ev_document_factory_get_document (const char *mime_type) type = ev_document_type_get_from_mime (mime_type); - if (type != G_TYPE_NONE) { + if (type != G_TYPE_INVALID) { return g_object_new (type, NULL); }