From: Nickolay V. Shmyrev Date: Sun, 29 Jan 2006 05:39:36 +0000 (+0000) Subject: Append real filename to tmp filename since often document type is X-Git-Tag: EVINCE_0_5_1~53 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=f0d0dfdce5afb47592d95da8308ed02d471f16e5;p=evince.git Append real filename to tmp filename since often document type is * shell/ev-job-xfer.c: (ev_job_xfer_run): Append real filename to tmp filename since often document type is determined by extension. --- diff --git a/ChangeLog b/ChangeLog index 0020ea30..9604ccf2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-01-29 Nickolay V. Shmyrev + + * shell/ev-job-xfer.c: (ev_job_xfer_run): Append + real filename to tmp filename since often document + type is determined by extension. + 2006-01-24 Ricardo Markiewicz * shell/ev-view.c: (add_scroll_binding_keypad), diff --git a/shell/ev-job-xfer.c b/shell/ev-job-xfer.c index 28e7a91a..cc9b7c47 100644 --- a/shell/ev-job-xfer.c +++ b/shell/ev-job-xfer.c @@ -115,9 +115,11 @@ ev_job_xfer_run (EvJobXfer *job) source_uri = gnome_vfs_uri_new (job->uri); if (!gnome_vfs_uri_is_local (source_uri)) { char *tmp_name; + char *base_name; tmp_name = ev_tmp_filename (); - job->local_uri = g_strconcat ("file:", tmp_name, NULL); + base_name = g_path_get_basename (job->uri); + job->local_uri = g_strconcat ("file:", tmp_name, base_name, NULL); g_free (tmp_name); target_uri = gnome_vfs_uri_new (job->local_uri);