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 776250 - Zoom changes to default whenever navigating to new page via the index menu.
Zoom changes to default whenever navigating to new page via the index menu.
Status: RESOLVED OBSOLETE
Product: evince
Classification: Core
Component: general
3.18.x
Other Linux
: High normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
a
: 781453 781454 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2016-12-19 01:54 UTC by 13frog37
Modified: 2018-05-22 16:56 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description 13frog37 2016-12-19 01:54:22 UTC
Whenever I navigate to a page via the index menu, the page zoom resets to it's default (fit page.)

Additionally, using "Save Current Settings as Default Ctrl-T" does not seem to save these settings. It will always revert to the "Fit Page" setting when navigating.

Closing and restarting the program after saving new default settings does nothing to aid in the settings taking hold.

Xubuntu 16.04 LTS
Comment 1 José Aliste 2016-12-19 12:26:09 UTC
Hi, this is not a bug, even if it can be very annoying for some. Links in PDF may specify a change in the zoom when activated. So, most probably this is what is happening, and it's not a bug, but a feature of PDF. 

However, since many users consider this an annoying feature, you can change the 
allow-links-change-zoom gsetting in the org.gnome.Evince.Default schema to false. 

Instead of closing this bug, I'd like to leave it open so we can add this to the help of evince.
Comment 2 13frog37 2016-12-19 14:28:39 UTC
Ahh, thank you. I was able to change the settings after some poking around. Is there any reason these settings aren't accessible in a menu?

For posterity:

## Where I found the schema (Xubuntu 16.04)
sudo vim /usr/share/glib-2.0/schemas/org.gnome.Evince.gschema.xml

## What to change (suggested to make a backup of file first)
## change "allow-links-change-zoom" to false

## To reload the schema (otherwise you won't see a change)
sudo glib-compile-schemas /usr/share/glib-2.0/schemas
Comment 3 José Aliste 2016-12-19 14:40:11 UTC
The(In reply to 13frog37 from comment #2)
> Ahh, thank you. I was able to change the settings after some poking around.
> Is there any reason these settings aren't accessible in a menu?
> 
> For posterity:
> 
> ## Where I found the schema (Xubuntu 16.04)
> sudo vim /usr/share/glib-2.0/schemas/org.gnome.Evince.gschema.xml
> 
> ## What to change (suggested to make a backup of file first)
> ## change "allow-links-change-zoom" to false
> 
> ## To reload the schema (otherwise you won't see a change)
> sudo glib-compile-schemas /usr/share/glib-2.0/schemas

This way is not-recommended. You shouldn't need to do anything as root to fix this. The recommended way is
$ gsettings set org.gnome.Evince allow-links-change-zoom false

or using dconf-editor

No reason really other than we don't have preference settings UI.
Comment 4 Germán Poo-Caamaño 2017-04-18 15:29:06 UTC
*** Bug 781453 has been marked as a duplicate of this bug. ***
Comment 5 Germán Poo-Caamaño 2017-04-18 15:29:18 UTC
*** Bug 781454 has been marked as a duplicate of this bug. ***
Comment 6 José Aliste 2017-04-18 18:30:32 UTC
I think that we might  do something like... Detect when following a link will change the zoom, and then display an Infobar saying "this link want to change the zoom, and Evince blablabla. Do you want to override this?" or something similar... in order to do the right thing with the less annoyance possible to users.
Comment 7 Germán Poo-Caamaño 2017-04-18 18:44:51 UTC
The infobar sounds doable.

Shall Evince ask per document or once for all?

I wonder how the user could undo the action, specially if the latter.
Comment 8 Germán Poo-Caamaño 2017-04-28 14:21:20 UTC
Increasing the importance because this is a recurrent issue.
Comment 9 GNOME Infrastructure Team 2018-05-22 16:56:35 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/741.