summaryrefslogtreecommitdiffstats
path: root/gconf
diff options
context:
space:
mode:
authorHuang Peng <shawn.p.huang@gmail.com>2008-08-01 22:37:19 +0800
committerHuang Peng <shawn.p.huang@gmail.com>2008-08-01 22:37:19 +0800
commita1ad647148a673f9e84f9d8ef2078eb3eb04e145 (patch)
tree4566395ff92e83a079905cf17b375fb846770e68 /gconf
parentbc962489b97edc1a84c04728ccc3f43391c28542 (diff)
downloadibus-a1ad647148a673f9e84f9d8ef2078eb3eb04e145.tar.gz
ibus-a1ad647148a673f9e84f9d8ef2078eb3eb04e145.tar.xz
ibus-a1ad647148a673f9e84f9d8ef2078eb3eb04e145.zip
Fix bug when unset a config key.
Diffstat (limited to 'gconf')
-rw-r--r--gconf/config.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/gconf/config.py b/gconf/config.py
index d75f073..69d5c0a 100644
--- a/gconf/config.py
+++ b/gconf/config.py
@@ -120,6 +120,8 @@ class Config(ibus.Object):
def __value_changed_cb(self, gconf, key, value):
value = self.__client.get(key)
value = self.__to_py_value(value)
+ if value == None:
+ value = 0
self.emit("value-changed", key.replace(GCONF_IBUS_PATH, ""), value)
gobject.type_register(Config)