diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2005-07-05 16:03:47 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2005-07-05 16:03:47 (GMT) |
commit | ffd47fa767f69c0b534037a6e067534d7d2345c9 (patch) | |
tree | bf8be20d659684c4a3a0fd0f1f4dc1d80015db47 /properties | |
parent | 4684716c489657edf098565eb54bdf86bad1b45c (diff) |
Support all mime types
2005-07-05 Marco Pesenti Gritti <mpg@redhat.com>
* Makefile.am:
* properties/Makefile.am:
* properties/ev-properties-main.c: (ev_properties_get_pages):
Support all mime types
* shell/Makefile.am:
* thumbnailer/Makefile.am:
* thumbnailer/evince-thumbnailer.c: (get_document_from_uri),
(evince_thumbnail_pngenc_get):
Use the document factory
Diffstat (limited to 'properties')
-rw-r--r-- | properties/Makefile.am | 7 | ||||
-rw-r--r-- | properties/ev-properties-main.c | 11 |
2 files changed, 9 insertions, 9 deletions
diff --git a/properties/Makefile.am b/properties/Makefile.am index 597fb5a..e00edd8 100644 --- a/properties/Makefile.am +++ b/properties/Makefile.am @@ -4,7 +4,6 @@ INCLUDES= \ -DDATADIR=\"$(pkgdatadir)\" \ -DGNOMELOCALEDIR=\"$(datadir)/locale\" \ -I$(top_srcdir)/backend \ - -I$(top_srcdir)/pdf \ $(PROPERTIES_CFLAGS) \ $(NAUTILUS_CFLAGS) \ $(EVINCE_DISABLE_DEPRECATED) \ @@ -33,6 +32,6 @@ libevince_properties_page_la_SOURCES = \ libevince_properties_page_la_LIBADD = \ $(PROPERTIES_LIBS) \ libevproperties.la \ - $(top_builddir)/pdf/libpdfdocument.la \ - $(top_builddir)/backend/libevbackend.la \ - $(top_builddir)/lib/libev.la + $(top_builddir)/shell/libevbackendfactory.la \ + $(top_builddir)/lib/libev.la \ + -ltiff -lz diff --git a/properties/ev-properties-main.c b/properties/ev-properties-main.c index 87f4a59..64f5707 100644 --- a/properties/ev-properties-main.c +++ b/properties/ev-properties-main.c @@ -28,7 +28,7 @@ */ #include "ev-properties-view.h" -#include "pdf-document.h" +#include "ev-document-factory.h" #include <config.h> #include <string.h> @@ -83,6 +83,7 @@ ev_properties_get_pages (NautilusPropertyPageProvider *provider, GList *files) { GError *error; + char *mime; EvDocument *document; GList *pages = NULL; NautilusFileInfo *file; @@ -95,12 +96,12 @@ ev_properties_get_pages (NautilusPropertyPageProvider *provider, goto end; file = files->data; - if (!nautilus_file_info_is_mime_type (file, "application/pdf")) { - goto end; - } /* okay, make the page */ - document = EV_DOCUMENT (pdf_document_new ()); + mime = nautilus_file_info_get_mime_type (file); + document = ev_document_factory_get_document (mime); + g_free (mime); + uri = nautilus_file_info_get_uri (file); if (!ev_document_load (document, uri, &error)) { g_error_free (error); |