After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 755064 - Nothing happens when I click on an unreachable document on recent view
Nothing happens when I click on an unreachable document on recent view
Status: RESOLVED FIXED
Product: evince
Classification: Core
Component: general
git master
Other Linux
: Normal minor
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-09-15 14:08 UTC by Felipe Borges
Modified: 2015-10-18 16:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Show message area messages on Recent view (1.25 KB, patch)
2015-09-17 09:49 UTC, Felipe Borges
needs-work Details | Review
screenshot (142.43 KB, image/png)
2015-09-17 09:51 UTC, Felipe Borges
  Details
show message area messages on recent view (1.15 KB, patch)
2015-09-18 10:02 UTC, Felipe Borges
committed Details | Review

Description Felipe Borges 2015-09-15 14:08:58 UTC
An unreachable document which I have previously opened through sftp shows up at the Recent View. When I click on the icon, nothing happens.

I think users should be notified that "the specific location does not exists or is unreachable", or the document should be in recent view in the first place.

I can work on a patch for it, but I wonder which approach should I implement (notification or hide document from recent view).
Comment 1 Germán Poo-Caamaño 2015-09-15 15:15:39 UTC
Local documents that do not exists any more are not shown in the recent view. Although, Carlos was reluctant to do that.  Now I found why:
Bug 674188 https://git.gnome.org/browse/evince/commit/?id=df46a24a7d52b217182f01be995721255941128e

   The problem is that gtk_recent_info_exists() does a stat on the
   file to check whether it exists, and thta causes a problem on
   locally mounted remote or external file systems. So, I think
   it's better to have unexitent files in the recent menu (which
   is unlikley) than slowing down evince startup.

That was before the recent view window, which reintroduces the issue
(I just noticed).

IIRC, we did not check for remote ones.  Checking if a remote document
exist is an expensive operation. It could be done asynchronously (If
worth the effort).

FWIW, the discussion of the new Recent View window is in Bug 633501
Comment 2 Felipe Borges 2015-09-17 09:49:01 UTC
It turns out that we already show such error messages for documents we can't reach, BUT this messages aren't shown on the Recent View view.

So in my use-case, when I click on the unreachable document, the message is correctly set but it does not get shown.

I managed to show it by re-parenting ev_window->priv->view_box.
Comment 3 Felipe Borges 2015-09-17 09:49:25 UTC
Created attachment 311532 [details] [review]
Show message area messages on Recent view
Comment 4 Felipe Borges 2015-09-17 09:51:59 UTC
Created attachment 311533 [details]
screenshot
Comment 5 Felipe Borges 2015-09-17 13:25:13 UTC
Comment on attachment 311532 [details] [review]
Show message area messages on Recent view

nevermind. It introduces a bug on preview mode.
Comment 6 Felipe Borges 2015-09-18 10:02:43 UTC
Created attachment 311620 [details] [review]
show message area messages on recent view
Comment 7 Germán Poo-Caamaño 2015-10-16 17:04:45 UTC
Carlos?
Comment 8 Carlos Garcia Campos 2015-10-18 09:03:37 UTC
Comment on attachment 311620 [details] [review]
show message area messages on recent view

Thanks
Comment 9 Germán Poo-Caamaño 2015-10-18 16:11:26 UTC
Review of attachment 311620 [details] [review]:

Pushed in master