[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 Nov 2 06:40:24 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 #22 from fujiwara <tfujiwar at redhat.com> 2011-11-02 02:40:23 EDT ---
(In reply to comment #21)
> eg: @@ -219,6 +219,9 @@ class LanguageBar(gtk.Toolbar):
> '-219' is the line number on the text file. What is ',9'. Thank you.
The original code has 6 lines and the new code has 9 lines so 9 - 6 == 3 lines
are added in that block.
You could check the differences:
% diff -urNp /usr/share/ibus/ui/gtk/languagebar.py.orig
/usr/share/ibus/ui/gtk/languagebar.py
> test1
> test2
> test8 languagebar.set_enabled False
> test8 languagebar.set_enabled False
> test8 languagebar.set_enabled 1
> test7 languagebar.focus_out 1
> test1
> test2
> test4
> test5 1
> test8 languagebar.set_enabled 1
> test8 languagebar.set_enabled False
> test8 languagebar.set_enabled 1
> test4
> test5 1
It's strange. 'test3' and 'test6 ...' are not called.
Could you add some other lines between 'test2' and 'test3' and check which line
is failed.
--- /usr/share/ibus/ui/gtk/panel.py.orig
+++ /usr/share/ibus/ui/gtk/panel.py
@@ -322,12 +322,17 @@ 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"
+ print "test2-1", enabled
use_bridge_hotkey = self.__use_bridge_hotkey()
+ print "test2-2", use_bridge_hotkey
self.__set_default_layout_engine(use_bridge_hotkey)
+ print "test2-3"
if use_bridge_hotkey:
if self.__show != 1:
self.__language_bar.set_enabled(enabled)
I'd expect the following output when an application get the input focus:
test1
test2
test2-1 0
test2-2 False
test2-3
test8 languagebar.set_enabled 0
test8 languagebar.set_enabled False
test8 languagebar.set_enabled 1
test3
test6 languagebar.focus_in 1 0
--
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