From: Huang Peng Date: Thu, 12 Jun 2008 02:58:03 +0000 (+0800) Subject: Change preedit's background color. X-Git-Tag: 0.1.0.20080810~409 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=09dc7d343658f80e5515ef9c523d4468de189fc6;p=platform%2Fupstream%2Fibus.git Change preedit's background color. --- diff --git a/engine/anthy/engine.py b/engine/anthy/engine.py index fba1ec3f..d60192c3 100644 --- a/engine/anthy/engine.py +++ b/engine/anthy/engine.py @@ -170,7 +170,7 @@ class Engine (interface.IEngine): attrs = ibus.AttrList () attrs.append (ibus.AttributeUnderline (pango.UNDERLINE_SINGLE, 0, len (self._convert_chars))) - attrs.append (ibus.AttributeBackground (ibus.RGB (200, 200, 200), + attrs.append (ibus.AttributeBackground (ibus.RGB (200, 200, 240), pos - len (self._segments[self._cursor_pos][1]), pos)) self.UpdatePreedit (dbus.String (self._convert_chars), @@ -322,6 +322,8 @@ class Engine (interface.IEngine): def _on_key_common (self, keyval): + if self._convert_begined: + return True self._input_chars += unichr (keyval) self._cursor_pos += 1 self._invalidate () diff --git a/ibus/interface/iengine.py b/ibus/interface/iengine.py index c5b53945..46f48ddf 100644 --- a/ibus/interface/iengine.py +++ b/ibus/interface/iengine.py @@ -63,7 +63,7 @@ class IEngine (dbus.service.Object): @signal (signature="ubu") def ForwardKeyEvent (self, keyval, is_press, state): pass - @signal (signature="saaiib") + @signal (signature="saauib") def UpdatePreedit (self, text, attrs, cursor_pos, visible): pass @signal (signature="svb")