[evince] [pdf] Use the attachment name rather than the annotation name



commit f877082cec3a33f76170e5463b95525db107caee
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Tue Nov 17 14:29:22 2009 +0100

    [pdf] Use the attachment name rather than the annotation name
    
    Annotation name is the name of an icon to be used in displaying the
    annot.

 backend/pdf/ev-poppler.cc |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/backend/pdf/ev-poppler.cc b/backend/pdf/ev-poppler.cc
index 503e468..784295c 100644
--- a/backend/pdf/ev-poppler.cc
+++ b/backend/pdf/ev-poppler.cc
@@ -2538,15 +2538,12 @@ ev_annot_from_poppler_annot (PopplerAnnot *poppler_annot,
 			if (poppler_attachment &&
 			    attachment_save_to_buffer (poppler_attachment, &data, &size, &error)) {
 				EvAttachment *ev_attachment;
-				gchar        *name;
 
-				name = poppler_annot_file_attachment_get_name (poppler_annot_attachment);
-				ev_attachment = ev_attachment_new (name,
+				ev_attachment = ev_attachment_new (poppler_attachment->name,
 								   poppler_attachment->description,
 								   poppler_attachment->mtime,
 								   poppler_attachment->ctime,
 								   size, data);
-				g_free (name);
 				ev_annot = ev_annotation_attachment_new (page, ev_attachment);
 				g_object_unref (ev_attachment);
 			} else if (error) {



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