Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-jobs.c
diff options
context:
space:
mode:
authorNickolay V. Shmyrev <nshmyrev@src.gnome.org>2006-05-27 12:37:56 (GMT)
committer Nickolay V. Shmyrev <nshmyrev@src.gnome.org>2006-05-27 12:37:56 (GMT)
commit75e184c10b9d8f1f52ebcde19660e45c5244f9a0 (patch)
tree6c19d086586f3279cf8d9a21e4a50f6ddd8088f5 /shell/ev-jobs.c
parent872101b786854841e6b32cac322f08d3dde6b946 (diff)
Open links with anchors. Fix for the bug #339836.
* shell/ev-jobs.c: (ev_job_xfer_run): * shell/main.c: (load_files): Open links with anchors. Fix for the bug #339836.
Diffstat (limited to 'shell/ev-jobs.c')
-rw-r--r--shell/ev-jobs.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/shell/ev-jobs.c b/shell/ev-jobs.c
index 9ee598a..4e01ab1 100644
--- a/shell/ev-jobs.c
+++ b/shell/ev-jobs.c
@@ -433,9 +433,13 @@ ev_job_xfer_run (EvJobXfer *job)
char *tmp_name;
char *base_name;
+ /* We'd like to keep extension of source uri since
+ * it helps to resolve some mime types, say cbz */
+
tmp_name = ev_tmp_filename ();
- base_name = g_path_get_basename (job->uri);
- job->local_uri = g_strconcat ("file:", tmp_name, base_name, NULL);
+ base_name = gnome_vfs_uri_extract_short_name (source_uri);
+ job->local_uri = g_strconcat ("file:", tmp_name, "-", base_name, NULL);
+ g_free (base_name);
g_free (tmp_name);
target_uri = gnome_vfs_uri_new (job->local_uri);