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 696891 - Hitting Home/End from any page should add a page to the history
Hitting Home/End from any page should add a page to the history
Status: RESOLVED OBSOLETE
Product: evince
Classification: Core
Component: general
unspecified
Other Windows
: Normal normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-03-30 06:12 UTC by Jiero
Modified: 2018-05-22 15:03 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Removes the condition that adds history only if new_page>old_page (1.06 KB, patch)
2014-02-18 13:39 UTC, piyush goel
none Details | Review
Solves the issue where per page scrolling adds the pages. (2.25 KB, patch)
2014-02-20 23:18 UTC, piyush goel
none Details | Review
Takes Christian Perch's view into account (1.76 KB, patch)
2014-02-21 09:17 UTC, piyush goel
none Details | Review
Fixes the issue mentioned by Christian Perch (1.76 KB, patch)
2014-02-21 09:21 UTC, piyush goel
none Details | Review
Fixes the issue mentioned by Christian Perch (1.76 KB, patch)
2014-02-21 09:53 UTC, piyush goel
none Details | Review

Description Jiero 2013-03-30 06:12:40 UTC
I often hit "Home" and then don't know the way to return last page I was viewing.

Please make a feature to solve this problem.

Any suggestions.
Comment 1 Christian Persch 2013-06-09 21:28:48 UTC
Maybe Home/End should add history entries.
Comment 2 Germán Poo-Caamaño 2013-06-09 22:06:10 UTC
(In reply to comment #1)
> Maybe Home/End should add history entries.

AFAIU, they do (whenever the page changes).
Comment 3 Germán Poo-Caamaño 2013-06-15 16:20:19 UTC
Now I can see the issue.  If you are reading the document page by page, there is no history if you press Home/End.
Comment 4 Anu Krishnan.U 2013-11-19 13:02:31 UTC
Hi i am interested in this bug. Is this easy bug for new person to work on?
Comment 5 Amol Pol 2013-11-23 06:40:38 UTC
Hi, I am interested in this bug.
Please guide me in solving this bug.
Comment 6 Anuj Khare 2014-02-17 12:33:10 UTC
(In reply to comment #2)
> AFAIU, they do (whenever the page changes).
They add history entries for the new page, in this case the home/end pages.

The issue is related to https://bugzilla.gnome.org/show_bug.cgi?id=710681, since in both cases the 'missing page' is the one from which we jumped.

I think adding 'old_page' to the history at every 'page-change' signal in addition to the 'new_page' would fix it.
Comment 7 piyush goel 2014-02-18 13:39:14 UTC
Created attachment 269546 [details] [review]
Removes the condition that adds history only if new_page>old_page

I added a patch.This seems to solve the problem.would like it if anyone could review it.
Comment 8 Christian Persch 2014-02-18 20:44:08 UTC
I think by doing this in the page-changed handler, you'll add a history entry for every page change, e.g. if you just scroll with the mouse from page N to page N+1 ? That's not desirable, IMO.
Comment 9 piyush goel 2014-02-20 23:18:39 UTC
Created attachment 269848 [details] [review]
Solves the issue where per page scrolling adds the pages.

I think this should solve the issue.It works for both Home/End buttons
Comment 10 piyush goel 2014-02-21 09:17:00 UTC
Created attachment 269877 [details] [review]
Takes Christian Perch's view into account

This one fixes the coding style issues in the previous patch.
Comment 11 piyush goel 2014-02-21 09:21:00 UTC
Created attachment 269878 [details] [review]
Fixes the issue mentioned by Christian Perch

Also fixes the coding style issues in the previous patches
Comment 12 piyush goel 2014-02-21 09:53:12 UTC
Created attachment 269887 [details] [review]
Fixes the issue mentioned by Christian Perch  

Also fixes the coding style issues in the previous patches
Comment 13 GNOME Infrastructure Team 2018-05-22 15:03:19 UTC
-- 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/338.