Fix typos.
This commit is contained in:
Родитель
cc7f9b0590
Коммит
06a6c3a8bf
|
@ -90,7 +90,7 @@ class DefaultConfig(ibus.Object):
|
|||
|
||||
def get_value(self, key, **kargs):
|
||||
reply_handler = kargs.get("reply_handler", None)
|
||||
error_handler = kargs.get("reply_handler", None)
|
||||
error_handler = kargs.get("error_handler", None)
|
||||
try:
|
||||
value = self.__config.get_value(key)
|
||||
if reply_handler:
|
||||
|
@ -105,7 +105,7 @@ class DefaultConfig(ibus.Object):
|
|||
|
||||
def set_value(self, key, value, **kargs):
|
||||
reply_handler = kargs.get("reply_handler", None)
|
||||
error_handler = kargs.get("reply_handler", None)
|
||||
error_handler = kargs.get("error_handler", None)
|
||||
try:
|
||||
self.__config.set_value(key, value)
|
||||
if reply_handler:
|
||||
|
|
|
@ -68,6 +68,18 @@ class IBusServer(dbus.server.Server):
|
|||
super(IBusServer, self).__init__()
|
||||
|
||||
self.__ibus = IBus()
|
||||
engines = []
|
||||
try:
|
||||
engines = self.__ibus.config_get_value("auto_enable_engine")
|
||||
except:
|
||||
pass
|
||||
for e in engines:
|
||||
try:
|
||||
lang, name = e.split(":")
|
||||
self.__ibus.register_start_engine(lang, name)
|
||||
except Eceptione, e:
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
|
||||
def connection_added(self, dbusconn):
|
||||
self.__ibus.new_connection(dbusconn)
|
||||
|
|
Загрузка…
Ссылка в новой задаче