GNOME Bugzilla – Bug 530447
Eye of GNOME opens images resized at 98% or 99% zoom
Last modified: 2008-10-08 19:19:29 UTC
Please describe the problem: Images which there is ample desktop space to display at 100% are opened by eog at 99% or, less often, at 98%. I cannot seem to detect a pattern for this in the image dimensions: 360 x 240 > opens at 100% 450 x 338 > opens at 98% 363 x 450 > opens at 99% 500 x 748 > opens at 99% 500 x 1030 > opens at 100% 1280 x 1024 > opens at 100% I'm seeing this in two Ubuntu 8.04 installations: 1. 32bit, screen resolution 1600x1200. 2. 64bit, screen resolution 1280x800. When the Image Collection panel is turned on (View, Image Collection), images are displayed at 100% zoom, provided there is sufficient desktop space. Steps to reproduce: 1. In Nautilus, open a directory with images, 2. Select an image, hit Enter to view in Eye of GNOME, 3. Hit Alt+F4 to close Eye of GNOME, 4. Repeat a few times, trying to select images small enough that can be displayed at 100% zoom on your desktop. Actual results: Expected results: Does this happen every time? Other information:
Confirming this on a 1280x1024 display.
hmm, the problem seems to be that the image viewing widget return wrong/silly allocation values when the collection is hidden on startup: Without collection: ImageW: 450 - H: 338 ViewW: 1 - H: 1 WindowW: 341 - H: 103 ScreenW: 1280 - H: 1024 DecoW: 340 - H: 102 FinalW: 790 - H: 440 With collection: ImageW: 450 - H: 338 ViewW: 202 - H: 100 WindowW: 341 - H: 207 ScreenW: 1280 - H: 1024 DecoW: 139 - H: 107 FinalW: 589 - H: 445 Generally the window width is always enough, we're missing height in the problematic cases. Btw, the "360 x 240 > opens at 100%" case works, because the resulting window height is below our minimum window height of 350px (so you get a larger window than needed).
hope someone can fix this.
Hi! Is there any news on this issue? Thanks.
*** Bug 551370 has been marked as a duplicate of this bug. ***
(In reply to comment #4) > Hi! Is there any news on this issue? Thanks. > Unfortunately not. The size allocation of the image viewing widget is not correct during this phase of the window initialization and couldn't find the reason for it yet.
Okay, looks like I got it. :-) When the collection is hidden the image viewing widget was realized earlier which at this stage broke its allocation. I changed that in SVN now (it will make it into 2.24.1) and all the test images opened correctly. 2008-10-08 Felix Riemann <> * src/eog-window.c: (eog_window_cmd_show_hide_bar): Avoid realizing the scrollview too early as that would break its allocation when the collection is hidden. Fixes bug #530447. -------------------------------------------------------------------------------- This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.
*** Bug 554446 has been marked as a duplicate of this bug. ***
Thank you!