Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/thumbnailer
diff options
context:
space:
mode:
Diffstat (limited to 'thumbnailer')
-rw-r--r--thumbnailer/evince-thumbnailer.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/thumbnailer/evince-thumbnailer.c b/thumbnailer/evince-thumbnailer.c
index c4a02cb..9c67246 100644
--- a/thumbnailer/evince-thumbnailer.c
+++ b/thumbnailer/evince-thumbnailer.c
@@ -35,15 +35,12 @@ evince_thumbnail_pngenc_get (const char *uri, const char *thumbnail, int size)
EvDocument *document = NULL;
GError *error = NULL;
GdkPixbuf *pixbuf;
- GType document_type;
char *mime_type = NULL;
- document_type = ev_document_type_lookup (uri, &mime_type, &error);
- if (document_type == G_TYPE_INVALID || error != NULL)
+ document = ev_document_types_get_document (uri, &mime_type, &error);
+ if (document == NULL)
return FALSE;
- document = g_object_new (document_type, NULL);
-
if (!ev_document_load (document, uri, &error)) {
if (error->domain == EV_DOCUMENT_ERROR &&
error->code == EV_DOCUMENT_ERROR_ENCRYPTED) {