Red Hat Bugzilla – Bug 198259
The scim systray icon in gnome-panel does not become transparent.
Last modified: 2007-11-30 17:11:37 EST
Description of problem: When making gnome-panel transparent, systray icons in
its notification area (e.g. NetworkManager's) reflect that configuration and
background color is transparent. However, scim systray icon does not become
transparent and colored gray.
Version-Release number of selected component (if applicable):
$ rpm -q scim scim-libs
How reproducible: Always
Steps to Reproduce:
1. Login (GNOME session)
2. Make the top panel (gnome-panel) transparent.
(1) Right click the top panel and open "Panel Properties" dialog
(2) Click "Background" tab and select [Solid Color]
(3) Slide the holizontal slider and set its transparency.
I made a quick temporal fix originally came from NetworkManager.
In the future, it should use GTKStatusIcon, new widget from 2.10, I guess.
Created attachment 132188 [details]
The patch to make scim systray icon transparent
FYI. My patch looks submitted into upstream cvs.
[ 1520119 ] The scim systray icon in gnome-panel does not become transp....
Thanks for the report and patch.
Perhaps I'm missing something but after applying the patch,
the scim systray icon is still not transparent for me.
I checked that your code should definitely be in 1.4.4-24.
You think one of scim_panel_gtk-*.patch affects this?
I'm not sure about that but the recent changes in scim_panel_gtk.cpp causing this.
1.4.4-23 + my patch just works fine.
> ... the recent changes in scim_panel_gtk.cpp causing this.
It's my feeling. I did not check it.
BTW, if scim-systray needs both normal menu and context menu, the code in
NetworkManager/gnome/applet/ should be helpful, I guess.
Tagoh commented that it is probably due to changing the base systray
widget from the Gtk Button to an EventBox in scim_panel_gtk-icon-size-fixes.patch.
(That patch hasn't been submitted upstream yet btw.)
(Does the NetworkManager applet do the menus in a better way?)
*** Bug 202741 has been marked as a duplicate of this bug. ***
Created attachment 134811 [details]
For reference here is a rough patch that implements the tray icon using
GtkStatusIcon. It seems to work well except the menu activation
is only for click not release.
For now I will revert the tray icon to a GtkButton so that transparency works.
This has the unfortunately side effect that the icon has to be much smaller
unfortunately since the button restricts the available child size considerably
and the default gnome panel size is pretty small.
Fix should be in scim-1.4.4-32.fc6.
I confirmed it works as a workaround, so will close this.
But I don't think EventBox is the cause of this issue. Both gpm
(gnome-power-manager) and nm (NetworkManager) look using gtk_event_* but work
fine. I'll look
I am tempted re-revert to the EventBox, since I feel the size problem
is more serious than the transparency issue.
I think the difference may be since g-p-m and NM are gnome-panel applets
whereas the scim icon sits in the notification tray.
I reduced the icon size of the systray button to 12 now scim-1.4.4.fc6.