GNOME Bugzilla – Bug 626153
Evince doesn't show descriptions of file attachments
Last modified: 2018-05-22 13:57:21 UTC
The follow LaTeX document creates a PDF with an attachment with a description. \documentclass[a4paper,10pt]{article} \usepackage{embedfile} \begin{document} sources \embedfile[desc={Sources of tis PDF}, mimetype=text/x-tex]{\jobname.tex} end \end{document} Okular shows the description, Evince does not. I guess it would be nice to have that at least in a tooltip, or underneath the filename in the sidepan.
Created attachment 167222 [details] PDF testcase
I can reproduce in evince 2.31.90
Created attachment 174184 [details] [review] Proposed patch to show description as tooltip This patch shows the description as a tooltip in the IconView. I'm not sure if this is the most intuitive solution, or we should try to write it with some special markup
Created attachment 174187 [details] [review] Updated patch to show the desciption also in the icon view Updated patch with KaL comments
Review of attachment 174187 [details] [review]: Thanks for the patch, there are several issues though. We need to set ellipsize property for the text cell renderer or the sidebar will grow when the description text is long. I think we should use a single column and change the orientation to horizontal. The problem is that GtkIconView uses expand=false for its cells, so ellipsize + not expand means only dots are displayed. So we have to create our own renderers and use the GtkCellLayout outrselves instead of just setting text and pixbuf column properties. ::: shell/ev-sidebar-attachments.c @@ +651,3 @@ COLUMN_NAME, ev_attachment_get_name (attachment), + COLUMN_LABEL, label, + COLUMN_DESCRIPTION, ev_attachment_get_description (attachment), GtkIconView uses gtk_tooltip_set_markup() so the description text should be escaped too.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/evince/issues/166.