Comment #5 on issue 1330 by takao.fujiwara1: "Show Language Panel" wouldn't work as "When active"
http://code.google.com/p/ibus/issues/detail?id=1330

I am using x86_64 ibus of Fedora 15's rpm version and had the same problem.

I'm not sure if your problem is same.

I tried to debug the ibus' program and found that if I delete line 225 of /usr/share/ibus/ui/gtk/languagebar.py(if self.__has_focus:), the language panel will show correctly when I activate the input method.

The languagebar.__has_focus is enabled when the languagebar.focus_in() is called. So after you focus on a text application. I think you can show the languagebar with Control+Space.

Also, I found that when I focus out to other windows, the language panel will disappear and will never show even I focus back to the window(The input method still works).

Then languagebar.__has_focus is disabled when languagebar.set_enabled() because you focused out the application. But panel.focus_in() also calls languagebar.focus_in() after languagebar.set_enabled(). And the languagebar is shown because languagebar.focus_in() calls show_all().
https://github.com/fujiwarat/ibus/blob/gjs/ui/gtk/languagebar.py#L328


--
You received this message because you are subscribed to the Google
Groups "ibus-devel" group.
iBus project web page: http://code.google.com/p/ibus/
iBus dev group: http://groups.google.com/group/ibus-devel?hl=en

回复