From f877082cec3a33f76170e5463b95525db107caee Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Tue, 17 Nov 2009 14:29:22 +0100 Subject: [PATCH] [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 file changed, 1 insertion(+), 4 deletions(-) diff --git a/backend/pdf/ev-poppler.cc b/backend/pdf/ev-poppler.cc index 503e468d..784295c0 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) { -- 2.43.5