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 425613 - Grey border around images in fullscreen/presentation mode
Grey border around images in fullscreen/presentation mode
Status: RESOLVED FIXED
Product: eog
Classification: Core
Component: image viewer
git master
Other All
: Normal major
: ---
Assigned To: EOG Maintainers
EOG Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-04-02 20:33 UTC by Wouter Bolsterlee (uws)
Modified: 2007-06-21 23:51 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20


Attachments
Proposed fix (2.42 KB, patch)
2007-04-17 01:15 UTC, Diego Escalante Urrelo (not reading bugmail)
none Details | Review
Updated patch. (5.75 KB, patch)
2007-04-21 08:21 UTC, Diego Escalante Urrelo (not reading bugmail)
none Details | Review
another idea (935 bytes, patch)
2007-06-21 09:58 UTC, Felix Riemann
committed Details | Review

Description Wouter Bolsterlee (uws) 2007-04-02 20:33:05 UTC
eog shows a 1px/2px border around images shown in fullscreen mode.
Comment 1 Diego Escalante Urrelo (not reading bugmail) 2007-04-17 01:15:16 UTC
Created attachment 86464 [details] [review]
Proposed fix

This patch makes the frame where view is put available through priv->frame so you can gtk_widget_reparent() view on eog_window_{run|stop}_fullscreen ().

I'm just reparent'ing  the view widget from frame to layout on run|stop_fullscreen.

Comments :)?
Comment 2 Diego Escalante Urrelo (not reading bugmail) 2007-04-17 01:16:31 UTC
A forgot to say that eog_window_collection_mode_changed_cb () would need a s/frame/priv->frame/g and removing GtkWidget *frame.
:)
Comment 3 Claudio Saavedra 2007-04-20 22:50:54 UTC
Hm, I was about to commit it, but now that I think, if we hide the frame, then we don't need to change its "shadow-type", right?

If possible update with the changes that you commented, too.
Comment 4 Diego Escalante Urrelo (not reading bugmail) 2007-04-21 08:21:53 UTC
Created attachment 86728 [details] [review]
Updated patch.

Looks like my old gtk+ didn't complain about the gtk_widget_reparent() to a container that already had a child.
I had to use gtk_container_remove() and g_object_{ref|unref}().

Anyway, the updated patch :).

It updates the eog_window_collection_mode_changed_cb () function too.
Comment 5 Diego Escalante Urrelo (not reading bugmail) 2007-05-21 19:24:08 UTC
ping :)
Comment 6 Felix Riemann 2007-06-21 09:58:41 UTC
Created attachment 90386 [details] [review]
another idea

Well, this is another idea I had to solve this.
It simply sets the border width of the frame to 0.
I am not sure if it is fully correct and sane though (as I don't fully understand the GtkStyle system), but it worked on my box at least.
Comment 7 Wouter Bolsterlee (uws) 2007-06-21 10:00:26 UTC
Raising severity, this is a major issue since it unnecessarily scales images to a smaller size.
Comment 8 Lucas Rocha 2007-06-21 23:51:01 UTC
Setting the style is much saner than re-parenting. Actually, it's the correct way. :-) Thanks guys!

2007-06-22  Lucas Rocha  <lucasr@gnome.org>
                
        * src/eog-window.c (eog_window_run_fullscreen,
        eog_window_stop_fullscreen): removed grey border when in fullscreen
        mode. Fixes bug #425613 (Felix Riemann).