Bug 198259 - The scim systray icon in gnome-panel does not become transparent.
The scim systray icon in gnome-panel does not become transparent.
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: scim (Show other bugs)
rawhide
All Linux
low Severity low
: ---
: ---
Assigned To: Jens Petersen
: Desktop, MoveUpstream, Patch, Reopened
: 202741 (view as bug list)
Depends On:
Blocks: FC6Target SCIM
  Show dependency treegraph
 
Reported: 2006-07-10 13:49 EDT by Satoru SATOH
Modified: 2007-11-30 17:11 EST (History)
2 users (show)

See Also:
Fixed In Version: 1.4.4-32.fc6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-10-02 12:21:08 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
The patch to make scim systray icon transparent (1.59 KB, patch)
2006-07-10 13:49 EDT, Satoru SATOH
no flags Details | Diff
status_icon.patch (14.14 KB, patch)
2006-08-24 09:49 EDT, Jens Petersen
no flags Details | Diff

  None (edit)
Description Satoru SATOH 2006-07-10 13:49:08 EDT
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
scim-1.4.4-23
scim-libs-1.4.4-23

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. 

  
Actual results:


Expected results:


Additional info:
I made a quick temporal fix originally came from NetworkManager.

In the future, it should use GTKStatusIcon, new widget from 2.10, I guess.
Comment 1 Satoru SATOH 2006-07-10 13:49:08 EDT
Created attachment 132188 [details]
The patch to make scim systray icon transparent
Comment 2 Satoru SATOH 2006-07-11 00:25:19 EDT
FYI. My patch looks submitted into upstream cvs.

[ 1520119 ] The scim systray icon in gnome-panel does not become transp....
https://sourceforge.net/tracker/?func=detail&atid=650539&aid=1520119&group_id=108454
Comment 3 Jens Petersen 2006-07-17 16:14:28 EDT
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.
Comment 4 Jens Petersen 2006-07-24 02:38:05 EDT
I checked that your code should definitely be in 1.4.4-24.

You think one of scim_panel_gtk-*.patch affects this?
Comment 5 Satoru SATOH 2006-07-24 21:36:42 EDT
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. 

Comment 6 Satoru SATOH 2006-07-24 21:53:28 EDT
> ... 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.
Comment 7 Jens Petersen 2006-07-25 03:03:04 EDT
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?)
Comment 8 Jens Petersen 2006-08-16 04:06:58 EDT
*** Bug 202741 has been marked as a duplicate of this bug. ***
Comment 9 Jens Petersen 2006-08-24 09:49:46 EDT
Created attachment 134811 [details]
status_icon.patch

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.
Comment 10 Jens Petersen 2006-08-24 10:01:03 EDT
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.
Comment 11 Satoru SATOH 2006-08-30 13:06:48 EDT
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 
Comment 12 Jens Petersen 2006-09-29 09:16:18 EDT
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.
Comment 13 Jens Petersen 2006-10-02 12:20:16 EDT
I reduced the icon size of the systray button to 12 now scim-1.4.4.fc6.

Note You need to log in before you can comment on or make changes to this bug.