summaryrefslogtreecommitdiffstats
path: root/ibus
diff options
context:
space:
mode:
authorHuang Peng <shawn.p.huang@gmail.com>2008-10-03 17:07:29 +0800
committerHuang Peng <shawn.p.huang@gmail.com>2008-10-03 17:07:29 +0800
commitb940644dbeaec464c0dfb25948f67162fc2a2f45 (patch)
treef444507fb880e7552357e683af9b05c4d6152a6a /ibus
parent141bb4e5635d4302598fd1b4204a332a2d780d6a (diff)
downloadibus-b940644dbeaec464c0dfb25948f67162fc2a2f45.tar.gz
ibus-b940644dbeaec464c0dfb25948f67162fc2a2f45.tar.xz
ibus-b940644dbeaec464c0dfb25948f67162fc2a2f45.zip
Change interface for config.
Diffstat (limited to 'ibus')
-rw-r--r--ibus/bus.py20
-rw-r--r--ibus/interface/iconfig.py12
2 files changed, 16 insertions, 16 deletions
diff --git a/ibus/bus.py b/ibus/bus.py
index 5c78c00..4f70c8a 100644
--- a/ibus/bus.py
+++ b/ibus/bus.py
@@ -194,22 +194,22 @@ class Bus(ibus.Object):
def get_input_context_states(self, ic):
return self.__ibus.GetInputContextStates(ic)
- def config_add_watch(self, key):
- return self.__ibus.ConfigAddWatch(key)
+ def config_add_watch(self, section):
+ return self.__ibus.ConfigAddWatch(section)
- def config_remove_watch(self, key):
- return self.__ibus.ConfigRemoveWatch(key)
+ def config_remove_watch(self, section):
+ return self.__ibus.ConfigRemoveWatch(section)
- def config_set_value(self, key, value):
- return self.__ibus.ConfigSetValue(key, value)
+ def config_set_value(self, section, name, value):
+ return self.__ibus.ConfigSetValue(section, name, value)
- def config_set_list(self, key, value, list_type):
+ def config_set_list(self, section, name, value, list_type):
value = dbus.Array(value, signature = list_type)
- return self.__ibus.ConfigSetValue(key, value)
+ return self.__ibus.ConfigSetValue(section, name, value)
- def config_get_value(self, key, default_value = None):
+ def config_get_value(self, section, name, default_value = None):
try:
- return self.__ibus.ConfigGetValue(key)
+ return self.__ibus.ConfigGetValue(section, name)
except Exception, e:
return default_value
diff --git a/ibus/interface/iconfig.py b/ibus/interface/iconfig.py
index 42268b3..02b694a 100644
--- a/ibus/interface/iconfig.py
+++ b/ibus/interface/iconfig.py
@@ -42,15 +42,15 @@ class IConfig(dbus.service.Object):
async_callbacks = ("reply_cb", "error_cb"), \
**args)
- @method(in_signature = "s", out_signature = "v")
- def GetValue(self, key): pass
+ @method(in_signature = "ss", out_signature = "v")
+ def GetValue(self, section, name): pass
- @method(in_signature = "sv")
- def SetValue(self, key, value): pass
+ @method(in_signature = "ssv")
+ def SetValue(self, section, name, value): pass
@method()
def Destroy(self): pass
- @signal(signature = "sv")
- def ValueChanged(self, key, value): pass
+ @signal(signature = "ssv")
+ def ValueChanged(self, section, name, value): pass