diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2007-02-03 19:02:28 (GMT) |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@src.gnome.org> | 2007-02-03 19:02:28 (GMT) |
commit | b346c5664d27a77e9068ea91eaf9a0c0d6210b0f (patch) | |
tree | fa3ee84f26b4edde138b23c363600cac764beac4 /shell | |
parent | 4430c8c45ee5b7a6331a6bbc63dbdd8478780371 (diff) |
Support for PDF, PS and EPS compressed files. Fixes bug #307087.
2007-02-03 Carlos Garcia Campos <carlosgc@gnome.org>
* configure.ac:
* backend/ps/ps-document.c: (ps_document_init), (ps_document_dispose),
(ps_interpreter_start), (document_load), (save_document),
(save_page_list):
* libdocument/ev-file-helpers.[ch]: (ev_file_uncompress):
* libdocument/ev-document-factory.c:
(ev_document_factory_get_from_mime), (get_document_from_uri),
(free_uncompressed_uri), (ev_document_factory_get_document):
* shell/ev-window.c: (ev_window_cmd_file_open_copy_at_dest):
Support for PDF, PS and EPS compressed files. Fixes bug #307087.
svn path=/trunk/; revision=2291
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ev-window.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c index 7cd803d..1a964f8 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -1502,8 +1502,12 @@ ev_window_cmd_file_open_copy_at_dest (EvWindow *window, EvLinkDest *dest) gchar *symlink_uri; gchar *old_filename; gchar *new_filename; + gchar *uri_unc; - old_filename = g_filename_from_uri (window->priv->uri, NULL, NULL); + uri_unc = g_object_get_data (G_OBJECT (window->priv->document), + "uri-uncompressed"); + old_filename = g_filename_from_uri (uri_unc ? uri_unc : window->priv->uri, + NULL, NULL); new_filename = ev_window_create_tmp_symlink (old_filename, &error); if (error) { @@ -3133,14 +3137,10 @@ ev_window_cmd_go_backward (GtkAction *action, EvWindow *ev_window) static void ev_window_cmd_view_reload (GtkAction *action, EvWindow *ev_window) { - char *uri; - - g_return_if_fail (EV_IS_WINDOW (ev_window)); + gchar *uri; uri = g_strdup (ev_window->priv->uri); - ev_window_open_uri (ev_window, uri, NULL, 0, FALSE); - g_free (uri); } |