]> www.fi.muni.cz Git - evince.git/commitdiff
Append real filename to tmp filename since often document type is
authorNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Sun, 29 Jan 2006 05:39:36 +0000 (05:39 +0000)
committerNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Sun, 29 Jan 2006 05:39:36 +0000 (05:39 +0000)
* shell/ev-job-xfer.c: (ev_job_xfer_run): Append
real filename to tmp filename since often document
type is determined by extension.

ChangeLog
shell/ev-job-xfer.c

index 0020ea309815f952ed7f564ebe788176bc5f707a..9604ccf2bbdd22461a195685486f58f5718f7f73 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-01-29  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>
+
+       * 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  <rmarkie@fi.uba.ar>
 
        * shell/ev-view.c: (add_scroll_binding_keypad),
index 28e7a91a472ff725948e9019c540ce01120a1884..cc9b7c4709f70968eb88f32258239deb4a90fd62 100644 (file)
@@ -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);