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 346680 - Transparant parts as custom color doesn't work in full screen
Transparant parts as custom color doesn't work in full screen
Status: RESOLVED FIXED
Product: eog
Classification: Core
Component: image viewer
2.14.x
Other Linux
: Normal minor
: ---
Assigned To: EOG Maintainers
EOG Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-07-05 18:33 UTC by Evert Verhellen
Modified: 2006-08-12 03:01 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
patch for 2.14.x (1.85 KB, patch)
2006-07-06 10:47 UTC, Felix Riemann
committed Details | Review
patch for 2.15.x (4.82 KB, patch)
2006-07-06 17:24 UTC, Felix Riemann
needs-work Details | Review
new patch for 2.15.x (5.40 KB, patch)
2006-07-16 19:00 UTC, Felix Riemann
none Details | Review

Description Evert Verhellen 2006-07-05 18:33:32 UTC
Choosing to display transparent parts of an image as custom color doesn't work full screen.

E.g.:
  1. Download http://www.letour.fr/PHOTOS/TDF/2006/300/POSITION.gif
  2. Open the image in EOG.
  3. Edit > Preferences > Transparent Parts: As custom color: #FFFFFF
  4. Press [F11].

Actual results: black backround
Expected results: white background

Version details: eog-2.14.2-1.fc5.1
Comment 1 Felix Riemann 2006-07-06 10:43:51 UTC
Confirming with CVS HEAD. Fullscreen seems to generally ignore the transparency settings and always use black.
Comment 2 Felix Riemann 2006-07-06 10:47:35 UTC
Created attachment 68458 [details] [review]
patch for 2.14.x

This patch is basically a copy of transparency_changed_cb() from eog-window.c to eog-fullscreen.c. I think this should be okay for the gnome-2-14-branch. For CVS HEAD I was planning to add the parsing code to EogScrollView to reduce the code duplication.
Comment 3 Felix Riemann 2006-07-06 17:24:40 UTC
Created attachment 68486 [details] [review]
patch for 2.15.x

This patch adds the capability of loading the settings from GConf directly into EogScrollView and modifies EogWindow and EogFullScreen to use it.
Comment 4 Evert Verhellen 2006-07-06 17:27:23 UTC
Patch for 2.14.* works for me. Thanks.
Comment 5 Lucas Rocha 2006-07-13 03:47:02 UTC
EOG 2.14 patch commited. 

2006-07-13  Lucas Rocha  <lucasr@gnome.org>

        * libeog/eog-full-screen.c (eog_full_screen_new): make transparency
        color preferences work on full screen mode (Fixes bug #346680).
        Patch from Felix Riemann <felix@hsgheli.de>.
Comment 6 Lucas Rocha 2006-07-13 03:55:27 UTC
Felix, I undertand your code duplication concern in the GNOME 2.15.x patch but the solution given is not good. EogScrollView must be a self-contained widget and should not depend on gconf. The only thing EogScrollView must know is which color to use as transparency for the images (the current API). I suggest you to work on a less intrusive solution like passing the transparency color to EogFullScreen constructor, for example.
Comment 7 Felix Riemann 2006-07-16 19:00:25 UTC
Created attachment 69008 [details] [review]
new patch for 2.15.x

Okay, I tried to change it. I didn't change EogFullScreen's constructor, because I think the change should be quite small (say easily reversible) because of its "short" time to live (eog-ng seems unaffected by this problem). The patch adds the parsing-function privately to EogWindow and a wrapper to EogFullScreen (wraps EogScrollView).

Well, I think it's quite large and it might be a consideration to use the 2.14-patch here as well despite of its code duplication.
Comment 8 Lucas Rocha 2006-08-12 03:01:10 UTC
Patch for 2.14 applied in HEAD. No need for too much effort in a "dead" part of code base. Thanks!