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 746132 - can't zoom to 100% 200% etc. in eog 3.15.91
can't zoom to 100% 200% etc. in eog 3.15.91
Status: RESOLVED FIXED
Product: eog
Classification: Core
Component: general
3.15.x
Other Linux
: Normal normal
: ---
Assigned To: EOG Maintainers
EOG Maintainers
Depends on: 749650
Blocks:
 
 
Reported: 2015-03-13 06:34 UTC by Asif Ali Rizvan
Modified: 2018-11-26 18:46 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
unable to zoom to 100% or multiples of 100% (291.81 KB, image/png)
2015-03-13 06:34 UTC, Asif Ali Rizvan
Details
viewnoir image viewer - compact toolar and with a useful titlebar (12.85 KB, image/png)
2015-03-15 19:10 UTC, Asif Ali Rizvan
Details
slider sample with tick at 100% (3.17 KB, image/png)
2015-05-17 14:50 UTC, Felix Riemann
Details
slider with gtk+ master from today (1.78 KB, image/png)
2015-06-15 17:23 UTC, Felix Riemann
Details

Description Asif Ali Rizvan 2015-03-13 06:34:17 UTC
Created attachment 299266 [details]
unable to zoom to 100% or multiples of 100%

Many pictures are big, so to see them as they are we need 100% zoom and to see smaller ones clearly we need 200%, 400% etc. 

1:1, 1:2 1:4 are scaled much better than other sizes, with less blur and more clarity.

Please allow percent wise zoom or let the slide 'stop' at different levels.

Also ctrl+1 shortcut not working.

Thanks.
Comment 1 Allan Day 2015-03-13 16:26:51 UTC
A "stop" at 100% makes sense, since it is something that could be interesting to users. I think that's something I discussed with Felix during the design of the zoom slider.

However, I don't see zooming to 200% or 400% to be interesting or useful design goals. Zooming is generally relative; you do it to make the image bigger or smaller, not to achieve a specific zoom level.
Comment 2 Asif Ali Rizvan 2015-03-15 19:10:49 UTC
Created attachment 299464 [details]
viewnoir image viewer - compact toolar and with a useful titlebar

Have you seen viewnoir? http://siyanpanayotov.com/project/viewnior/ it is inspired by eog. The toolbar is compact (except the 2 buttons zoom + and -)

The title bar shows the number of files in the current folder 8/46 and zoom percentage (100%) as can be seen in the attachment.

Thanks.
Comment 3 Felix Riemann 2015-03-27 21:19:37 UTC
Yes, there was a tick at 100% in one of the headerbar patches.
However, adding a tick offsets the scalebar as the marker will either be above or beyond the bar, which didn't look that great IMHO.

As it was also resisting my attempts at recoloring the tick, which was a bit hard to spot on the dark headerbar and Jente having experianced some problems with rendering I took it out again.

We could revisit it though. Adding an empty tick is a one-liner.

(In reply to Asif Ali Rizvan from comment #0)
> Also ctrl+1 shortcut not working.

Where did you get CTRL+1? eog's shortcuts for 100% are historically either CTRL+0 or just 1.
Comment 4 Felix Riemann 2015-05-17 14:50:32 UTC
Created attachment 303482 [details]
slider sample with tick at 100%

That's how it looks with a tick at 100%. Notice the slider being offset to the top. However, I can't spot any display corruptions. The only thing that needs some retouching would probably be the tick color.
Comment 5 Allan Day 2015-05-18 09:23:00 UTC
Maybe just have the stop without the tick mark?
Comment 6 Felix Riemann 2015-05-18 18:11:05 UTC
This would require changes in GTK+, to allow GtkScale to have marks without showing them. This might be somewhat related to #582752, I guess.
Comment 7 Allan Day 2015-05-20 17:27:08 UTC
I discussed this with Lapo and Jakub the other day, and we agreed that the theme could be modified so that the tick marks don't affect the positioning of the slider trough. This change is being tracked as bug 749650.
Comment 8 Felix Riemann 2015-06-15 17:23:35 UTC
Created attachment 305331 [details]
slider with gtk+ master from today

With the changes from bug 749650 the marker is a bit smaller and more "under" the slider.

The marker is a bit hard to see with the dark theme, but it would be pretty good to reach 100% with the mouse for example.
Comment 9 Allan Day 2015-06-19 14:46:24 UTC
(In reply to Felix Riemann from comment #8)
> Created attachment 305331 [details]
> slider with gtk+ master from today
> 
> With the changes from bug 749650 the marker is a bit smaller and more
> "under" the slider.
...

It's a bit of a shame that the slider trough isn't vertically centered inside the headerbar, but this looks OK to me.
Comment 10 Felix Riemann 2015-06-22 19:37:07 UTC
commit 2cb75ec6e88753a0019d7876fbca57b5fb258edf
Author: Felix Riemann <>
Date:   Mon Jun 22 20:29:08 2015 +0200

    EogWindow: Add stop mark to zoom slider at 100% zoom
    
    https://bugzilla.gnome.org/show_bug.cgi?id=746132
Comment 11 André Klapper 2018-11-22 08:24:07 UTC
Assuming this is fixed in recent versions?
Comment 12 Felix Riemann 2018-11-26 18:46:55 UTC
(In reply to André Klapper from comment #11)
> Assuming this is fixed in recent versions?

Oops, yes it is!
Especially since the slider has now been replaced by a dropdown list.