projects
/
platform
/
upstream
/
ibus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc96248
)
Fix bug when unset a config key.
author
Huang Peng
<shawn.p.huang@gmail.com>
Fri, 1 Aug 2008 14:37:19 +0000
(22:37 +0800)
committer
Huang Peng
<shawn.p.huang@gmail.com>
Fri, 1 Aug 2008 14:37:19 +0000
(22:37 +0800)
gconf/config.py
patch
|
blob
|
history
diff --git
a/gconf/config.py
b/gconf/config.py
index
d75f073
..
69d5c0a
100644
(file)
--- 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)