[Fedora-i18n-bugs] [Bug 744667] ibus 1.4 update: broke preferences "show language bar when active" on JP input

bugzilla at redhat.com bugzilla at redhat.com
Wed Oct 12 09:51:25 UTC 2011


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=744667

fujiwara <tfujiwar at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
               Flag|                            |needinfo?(nomnex at gmail.com)

--- Comment #2 from fujiwara <tfujiwar at redhat.com> 2011-10-12 05:51:23 EDT ---
(In reply to comment #1)
> The "input method name" is now grayed out.

It means focus_in event is not called.

Are you able to look at the same problem with gtk applications likes gedit?


Are you able to see any errors with verbose mode?
1. Right click on ibus panel icon and choose 'Quit'.
2. Run 'ibus-daemon --xim --verbose'

Are you able to modify the /usr/share/ibus/ui/gtk/panel.py below and run ibus
panel directly?

--- /usr/share/ibus/ui/gtk/panel.py.orig
+++ /usr/share/ibus/ui/gtk/panel.py
@@ -320,9 +320,11 @@ class Panel(ibus.PanelBase):
                 self.__focus_ic.enable()

     def focus_in(self, ic):
+        print "test1"
         self.reset()
         self.__focus_ic = ibus.InputContext(self.__bus, ic)
         enabled = self.__focus_ic.is_enabled()
+        print "test2"

         use_bridge_hotkey = self.__use_bridge_hotkey()
         self.__set_default_layout_engine(use_bridge_hotkey)
@@ -357,6 +359,7 @@ class Panel(ibus.PanelBase):
                 self.__set_im_name(None)
                 if self.__bus.get_use_sys_layout():
                     self.__xkblayout.set_layout()
+        print "test3"
         self.__language_bar.focus_in()

     def focus_out(self, ic):
@@ -373,6 +376,7 @@ class Panel(ibus.PanelBase):
         if not self.__focus_ic:
             return

+        print "test4"
         enabled = self.__focus_ic.is_enabled()

         if self.__use_bridge_hotkey():
@@ -388,6 +392,7 @@ class Panel(ibus.PanelBase):
             else:
                 self.__language_bar.set_enabled(False)
         else:
+            print "test5", enabled
             self.__language_bar.set_enabled(enabled)

         if enabled == False:


% ps -ef | grep ibus/ui
account 16077 16031  /usr/bin/python /usr/share/ibus/ui/gtk/main.py
% kill 16077
% env IBUS_PREFIX=/usr python /usr/share/ibus/ui/gtk/main.py

Then when you focus in a GTK text application, I expect "test1", "test2",
"test3" are shown.
And when you type Control + Space, I expect "test4" and "test5" are shown.

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the i18n-bugs mailing list