X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;ds=sidebyside;f=shell%2Fev-job-xfer.c;h=28e7a91a472ff725948e9019c540ce01120a1884;hb=578c78ee1a5ee3b2aa858ebf257646c195cd9885;hp=49f674e53f2ebdbeec8b9c6840426aec05c70bef;hpb=270571fe9d9ab085696c5b2af5a484dfc272b7a0;p=evince.git diff --git a/shell/ev-job-xfer.c b/shell/ev-job-xfer.c index 49f674e5..28e7a91a 100644 --- a/shell/ev-job-xfer.c +++ b/shell/ev-job-xfer.c @@ -90,7 +90,7 @@ ev_job_xfer_new (const gchar *uri) void ev_job_xfer_run (EvJobXfer *job) { - GType document_type; + EvDocument *document; GError *error = NULL; GnomeVFSURI *source_uri; GnomeVFSURI *target_uri; @@ -102,10 +102,10 @@ ev_job_xfer_run (EvJobXfer *job) job->error = NULL; } - document_type = ev_document_type_lookup (job->uri, NULL, &error); + document = ev_document_types_get_document (job->uri, NULL, &error); - if (document_type != G_TYPE_INVALID) { - EV_JOB (job)->document = g_object_new (document_type, NULL); + if (document != NULL) { + EV_JOB (job)->document = document; } else { job->error = error; EV_JOB (job)->finished = TRUE;