summaryrefslogtreecommitdiffstats
path: root/ibus/attribute.py
diff options
context:
space:
mode:
authorHuang Peng <shawn.p.huang@gmail.com>2008-08-11 17:44:43 +0800
committerHuang Peng <shawn.p.huang@gmail.com>2008-08-11 17:44:43 +0800
commit9862c178ee34df60fde6e8c7865de2aa2f8affb6 (patch)
tree471c70efd09c04f5f0663c303440e54b1918969c /ibus/attribute.py
parent721a884b76c2958f3e144e1e2e9799f11e50e5a3 (diff)
downloadibus-9862c178ee34df60fde6e8c7865de2aa2f8affb6.tar.gz
ibus-9862c178ee34df60fde6e8c7865de2aa2f8affb6.tar.xz
ibus-9862c178ee34df60fde6e8c7865de2aa2f8affb6.zip
Change candidates' attributes.
Diffstat (limited to 'ibus/attribute.py')
-rw-r--r--ibus/attribute.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ibus/attribute.py b/ibus/attribute.py
index 57e390b..5aac6b2 100644
--- a/ibus/attribute.py
+++ b/ibus/attribute.py
@@ -128,6 +128,8 @@ class AttrList:
return self._attrs.__iter__ ()
def attr_list_from_dbus_value (value):
+ if len(value) == 0:
+ return None
attrs = AttrList ()
attrs.from_dbus_value (value)
return attrs