summaryrefslogtreecommitdiff
path: root/ibus
diff options
context:
space:
mode:
authorfujiwarat <takao.fujiwara1@gmail.com>2010-11-01 18:16:25 +0900
committerPeng Huang <shawn.p.huang@gmail.com>2010-11-03 10:54:59 +0900
commita0e4923aa8c3dd3865bac7ba67b9a3979432c7fb (patch)
tree98b0db857c225569c127cf74396b7b97dd2ffbaa /ibus
parent2cac54a2a77459ec5f3e0fdbed376249fee0d2a4 (diff)
downloadibus-a0e4923aa8c3dd3865bac7ba67b9a3979432c7fb.tar.gz
Fix UnsetValue name.
Diffstat (limited to 'ibus')
-rw-r--r--ibus/config.py10
-rw-r--r--ibus/interface/iconfig.py3
2 files changed, 8 insertions, 5 deletions
diff --git a/ibus/config.py b/ibus/config.py
index 2e913d96..0f6e80f0 100644
--- a/ibus/config.py
+++ b/ibus/config.py
@@ -46,7 +46,7 @@ class ConfigBase(object.Object):
def set_value(self, section, name, value):
pass
- def unset(self, section, name):
+ def unset_value(self, section, name):
pass
def value_changed(self, section, name, value):
@@ -65,8 +65,8 @@ class ConfigProxy(interface.IConfig):
def SetValue(self, section, name, value):
return self.__config.set_value(section, name, value)
- def Unset(self, section, name):
- return self.__config.unset(section, name)
+ def UnsetValue(self, section, name):
+ return self.__config.unset_value(section, name)
def Destroy(self):
self.__config.destroy()
@@ -148,8 +148,8 @@ class Config(object.Object):
def set_list(self, section, name, value, signature):
return self.set_value(section, name, dbus.Array(value, signature=signature))
- def unset(self, section, name):
+ def unset_value(self, section, name):
try:
- return self.__config.Unset(section, name)
+ return self.__config.UnsetValue(section, name)
except:
return
diff --git a/ibus/interface/iconfig.py b/ibus/interface/iconfig.py
index 34dd9728..8637800a 100644
--- a/ibus/interface/iconfig.py
+++ b/ibus/interface/iconfig.py
@@ -49,6 +49,9 @@ class IConfig(dbus.service.Object):
@method(in_signature="ssv")
def SetValue(self, section, name, value): pass
+ @method(in_signature="ss")
+ def UnsetValue(self, section, name): pass
+
@method()
def Destroy(self): pass