diff options
author | Huang Peng <shawn.p.huang@gmail.com> | 2008-10-04 08:51:39 +0800 |
---|---|---|
committer | Huang Peng <shawn.p.huang@gmail.com> | 2008-10-04 08:51:39 +0800 |
commit | 397ff9ca92a2eaf8469b757243813849804f9290 (patch) | |
tree | b3fa22baa1a1a4ae1450d81120552b323d74ae1b /gconf | |
parent | d362fe98b9b428e21324a32e922529c8f9ac3837 (diff) | |
download | ibus-397ff9ca92a2eaf8469b757243813849804f9290.tar.gz ibus-397ff9ca92a2eaf8469b757243813849804f9290.tar.xz ibus-397ff9ca92a2eaf8469b757243813849804f9290.zip |
WIP.
Diffstat (limited to 'gconf')
-rw-r--r-- | gconf/config.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gconf/config.py b/gconf/config.py index 8ec0d5f..72e329a 100644 --- a/gconf/config.py +++ b/gconf/config.py @@ -66,6 +66,8 @@ class Config(ibus.ConfigBase): super(Config, self).do_destroy() def __to_py_value(self, value): + if value == None: + return None if value.type == gconf.VALUE_STRING: return unicode(value.get_string(), "utf-8") if value.type == gconf.VALUE_INT: |