]> www.fi.muni.cz Git - evince.git/commitdiff
[pdf] Use the attachment name rather than the annotation name
authorCarlos Garcia Campos <carlosgc@gnome.org>
Tue, 17 Nov 2009 13:29:22 +0000 (14:29 +0100)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Tue, 17 Nov 2009 13:29:22 +0000 (14:29 +0100)
Annotation name is the name of an icon to be used in displaying the
annot.

backend/pdf/ev-poppler.cc

index 503e468d23876d0a119847694f27e1be8bce7666..784295c0fbe811982b1e7ec775a456abc449908b 100644 (file)
@@ -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) {