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 672196 - Open at the last page viewed
Open at the last page viewed
Status: RESOLVED FIXED
Product: gnome-documents
Classification: Core
Component: general
0.3.x
Other Linux
: Normal enhancement
: ---
Assigned To: GNOME documents maintainer(s)
GNOME documents maintainer(s)
: 678740 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-03-15 21:39 UTC by Felipe Borges
Modified: 2012-07-17 20:42 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Felipe Borges 2012-03-15 21:39:23 UTC
A feature I like on Evince is that it opens on the last page viewed in a document. This is something I miss in my daily use of gnome-documents.

I'd like to work on this enhancement, but I don't know from where to start. How would we store the last page viewed in a given document? Should we add lastPageViewed as a document property on Tracker? (I don't know much about tracker yet).
Comment 1 Cosimo Cecchi 2012-03-16 13:41:12 UTC
Yes, this is definitely something we want.

You could indeed use Tracker, but I don't think it's the best approach to store this kind of temporary application-specific metadata information.
What Evince does (and what we should do too IMO) is using some namespaced gvfs metadata, and the GFileInfo API of GIO to set values (code is here [1]).
Note that for the way caching for remote/office documents is implemented right now, metadata would be discarded automatically with the cached copy when this is replaced (provided that we set the metadata attributes on the cached copy).

[1] http://git.gnome.org/browse/evince/tree/shell/ev-metadata.c
Comment 2 Cosimo Cecchi 2012-06-25 18:14:30 UTC
*** Bug 678740 has been marked as a duplicate of this bug. ***
Comment 3 Cosimo Cecchi 2012-07-17 20:42:23 UTC
I now pushed a first implementation of this to git master, closing as FIXED.