Red Hat Bugzilla – Bug 208406
Transparent icon background rendered black
Last modified: 2007-11-30 17:11:44 EST
Description of problem:
The "dx-4.4.4-2.1.fc6" package contains an icon "dx.xpm" which has
a grey background (see bug 207841). After setting the uniform grey
background color to "none" in the "XPM" file to better blend with
the "GOME" menu button ("Applications" -> "Graphics" -> "OpenDX"),
the icon is rendered correctly in the menu but the application icon
in the title bar of the main "metacity" window now has a black
background. The same holds for the corresponding entries in the
window list (lower "GNOME" panel). The embedding of "XPM" icons with
transparent background in "GTK2" widgets seems to have a problem here.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Launch "dx" with "dx.xpm" modified to have a transparent background.
Application icon rendered correctly with transparent background in the
"GNOME" menu but with black background in both "metacity" title bar and
"GNOME" window list.
Application icon rendered with transparent background everywhere.
Created attachment 138621 [details]
Your icon works fine with this little test app, so I guess this must be an issue
The test program actually works, but it doesn't allow a conclusive
judgement. "dx" is not a "GTK" based application as yours but a "Motif"
based one. Nevertheless, application icons have to be rendered correctly
by window manager (here "GTK" based "metacity") and desktop utilities
like the ("GNOME" panel) window list applet regardless of the toolkit
which the application uses. Of course, this reasoning also holds for
plain "X/Athena" applications etc. In the case of "dx", "dx.xpm" gets
written out by an "sprintf(...)" command. I have to look into that in
more detail, but for the time being, neither of both possibilities is
Assuming an "OpenDX" issue, bug reported upstream, see: