[evince] Copy document metadata to the new file when saving a copy



commit 8652c61ea91698f7d3a5e11a467eca3b0ec4ac26
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Wed May 2 19:25:50 2012 +0200

    Copy document metadata to the new file when saving a copy
    
    https://bugzilla.gnome.org/show_bug.cgi?id=674629

 libview/ev-jobs.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libview/ev-jobs.c b/libview/ev-jobs.c
index 8839a36..0c0b1de 100644
--- a/libview/ev-jobs.c
+++ b/libview/ev-jobs.c
@@ -1185,6 +1185,10 @@ ev_job_save_run (EvJob *job)
 	ev_xfer_uri_simple (local_uri, job_save->uri, &error);
 	ev_tmp_uri_unlink (local_uri);
 
+        /* Copy the metadata from the original file */
+        if (!error)
+                ev_file_copy_metadata (job_save->document_uri, job_save->uri, &error);
+
 	if (error) {
 		ev_job_failed_from_error (job, error);
 		g_error_free (error);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]