Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
Summary: provide IME input mode status in panel
https://bugzilla.redhat.com/show_bug.cgi?id=545695
Summary: provide IME input mode status in panel Product: Fedora Version: rawhide Platform: All OS/Version: Linux Status: NEW Keywords: FutureFeature Severity: medium Priority: low Component: ibus AssignedTo: phuang@redhat.com ReportedBy: petersen@redhat.com QAContact: extras-qa@fedoraproject.org CC: phuang@redhat.com, fedora-i18n-bugs@redhat.com Estimated Hours: 0.0 Classification: Fedora Target Release: ---
Description of problem: It would be nice if ibus could show IME status in its panel: eg input for anthy, etc. Currently one must have the toolbar to see the input mode. uim can do this.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=545695
Jens Petersen petersen@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|phuang@redhat.com |tfujiwar@redhat.com
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=545695
--- Comment #1 from fujiwara tfujiwar@redhat.com 2009-12-18 03:06:36 EDT --- In quick evaluation, I think we may need C wrapper for ibus to fix this.
To modify GtkStatusIcon image on gnome-panel systray, we need to access GtkImage in GtkStatusIcon. But GtkImage is a private member in GtkStatusIcon so python doesn't provide the interface of GtkImage in gtk.StatusIcon.
If we try to provide a custom gtk.Image likes ibus/ui/gtk/icon.py, we need to access _gtk_tray_icon_new() but the GtkTrayIcon itself is private in gtk so python also doesn't provide the API.
If we try to provide a custom _gtk_tray_icon_new(), we need to access X11 Atom but there is no x11 python.
I think dbus C API is not a solution in this case since _gtk_tray_icon_new() would be need the display.
How about providing a new C wrapper likes /usr/lib/python/ibus/ibusgtk.so ?
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=545695
fujiwara tfujiwar@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED
--- Comment #2 from fujiwara tfujiwar@redhat.com 2009-12-21 23:28:14 EDT --- (In reply to comment #1)
In quick evaluation, I think we may need C wrapper for ibus to fix this.
I noticed egg.trayicon.TrayIcon() is available in gnome-python-extra against the private GTK. It works fine for my thought. I'll finish my patch today.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=545695
--- Comment #3 from fujiwara tfujiwar@redhat.com 2009-12-22 01:44:31 EDT --- Created an attachment (id=379772) --> (https://bugzilla.redhat.com/attachment.cgi?id=379772) Patch for ibus panel.py statusicon.py
Added the trial patch. This could show the inputmode on the status icon instead of the engine icon for ja. But it seems the inputmode doesn't work with zh and ko.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=545695
--- Comment #4 from fujiwara tfujiwar@redhat.com 2009-12-29 12:48:13 EDT --- I received some feedback. One is the icon background is not drawn correctly in KDE and it means the background is not updated and some garbage image is left.
After I have the the furthermore investigations, I noticed I also can reproduce a similar problem in GNOME and it seems the problem cannot be fixed in the customized statusicon.py. I think the root cause is in egg.trayicon.
I filed an upstream bug: https://bugzilla.gnome.org/show_bug.cgi?id=605683
If we apply my patch in the report, this problem can be fixed.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=545695
fujiwara tfujiwar@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #379772|0 |1 is obsolete| |
--- Comment #5 from fujiwara tfujiwar@redhat.com 2009-12-29 12:56:53 EDT --- Created an attachment (id=380831) --> (https://bugzilla.redhat.com/attachment.cgi?id=380831) Patch for ibus panel.py statusicon.py
Revised the patch.
- Fixed a typo in panel.py: update_property() - Enhanced x,y coordinate - Changed the parent of statusicon.py from gtk.StatusIcon to gobject.GObject so that the width is set correctly in KDE. - Enhanced drawing input mode string. - Supported ibus-chewing, ibus-pinyin input mode and the other default input modes are taken from the engine names.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=545695
--- Comment #6 from fujiwara tfujiwar@redhat.com 2010-01-24 23:29:27 EST --- Now I could access GtkImage without using egg.trayicon.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=545695
Peng Huang phuang@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |CLOSED Resolution| |CURRENTRELEASE
--- Comment #7 from Peng Huang phuang@redhat.com 2010-05-06 02:29:43 EDT --- We have embedded ime statues in the menu. I think this bug could be closed.
i18n-bugs@lists.fedoraproject.org