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 143141 - EOG window shouldn't resize itself after mapping
EOG window shouldn't resize itself after mapping
Status: RESOLVED FIXED
Product: eog
Classification: Core
Component: image viewer
unspecified
Other Linux
: Normal normal
: ---
Assigned To: EOG Maintainers
EOG Maintainers
: 162781 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-05-25 18:25 UTC by Rob Adams
Modified: 2005-03-28 15:16 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Rob Adams 2004-05-25 18:25:58 UTC
If you start EOG with a file argument or by double-clicking nautilus the EOG
window will map itself at its default size and then resize itself to fit the
image.  This makes the window placement very poor for EOG.  If it's started with
a file argument it should figure out its initial size before mapping the window.  

This may be an API limitation; not really sure.
Comment 1 Isak Savo 2004-12-07 20:43:29 UTC
This is still an issue in EOG 2.8.0. 

Testcase:

1) Start with a clean desktop
2) Open up a nautilus window, with one or more images.
 2.1) Place the folder window in the top-left corner, occupying about 50% of the
screen width (leaving you with available space to the right of the window).
3) Click to open an image of pretty large size (> 50% of screen-width)

Actual Result:
Metacity will place the (initially small) EOG-window in the empty space to the
right of the folder view, where it fits nicely. But then EOG resizes itself;
making the window extend outside of the desktop space.

Expected result:
EOG shouldn't show the window until it has the correct size, allowing Metacity
to make a better decision on where to place the window. 

Proposed solutions:
1)Read the image info first, manually resizing the imageview part of the EOG
window to image geometry.
OR
2) Read the image and show the window when the image is loaded and the correct
size has been set by GTK+
Comment 2 Rob Adams 2005-01-04 16:54:32 UTC
*** Bug 162781 has been marked as a duplicate of this bug. ***
Comment 3 Vincent Noel 2005-03-28 15:16:31 UTC
This is now fixed in CVS and works as it should. Yay ! Thousands of happy users
can now switch to EOG full-time.