diff options
author | Huang Peng <shawn.p.huang@gmail.com> | 2008-09-08 21:05:44 +0800 |
---|---|---|
committer | Huang Peng <shawn.p.huang@gmail.com> | 2008-09-08 21:05:44 +0800 |
commit | 78bc232a82e8a9f4e175c2503c133961b1efd66e (patch) | |
tree | dc76a6dff70ee24fed2eb1996f9a9837f5952770 | |
parent | b29d6d19386286d13ff207ea05ef0d44260882a7 (diff) | |
download | ibus-78bc232a82e8a9f4e175c2503c133961b1efd66e.tar.gz ibus-78bc232a82e8a9f4e175c2503c133961b1efd66e.tar.xz ibus-78bc232a82e8a9f4e175c2503c133961b1efd66e.zip |
Fix some typos.
-rw-r--r-- | daemon/inputcontext.py | 2 | ||||
-rw-r--r-- | ibus/bus.py | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/daemon/inputcontext.py b/daemon/inputcontext.py index 88fc44c..b3def5c 100644 --- a/daemon/inputcontext.py +++ b/daemon/inputcontext.py @@ -186,7 +186,7 @@ class InputContext(ibus.Object): return self.__enable def set_capabilities(self, caps): - self.__support_preedit = (caps & (1 << 1)) != 0 + self.__support_preedit = (caps & (1 << 0)) != 0 self.__support_aux_string = (caps & (1 << 1)) != 0 self.__support_lookup_table = (caps & (1 << 2)) != 0 diff --git a/ibus/bus.py b/ibus/bus.py index e765692..5b2b614 100644 --- a/ibus/bus.py +++ b/ibus/bus.py @@ -23,6 +23,7 @@ __all__ = ( "Bus", ) +import sys import gobject import dbus.lowlevel import dbus.connection @@ -56,7 +57,7 @@ class Bus(ibus.Object): "update-aux-string" : ( gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE, - (gobject.TYPE_STRING, gobject.TYPE_PYOBJECT) + (gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_PYOBJECT, gobject.TYPE_BOOLEAN) ), "show-aux-string" : ( gobject.SIGNAL_RUN_FIRST, @@ -151,7 +152,7 @@ class Bus(ibus.Object): # aux string signals elif message.is_signal(ibus.IBUS_IFACE, "UpdateAuxString"): args = message.get_args_list() - ic, aux_string, attrs, visible = args[0], args[1] + ic, aux_string, attrs, visible = args[0:4] attrs = ibus.attr_list_from_dbus_value(attrs) self.emit("update-aux-string", ic, aux_string.encode("utf-8"), attrs, visible) |