Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Quiñones <manuq@laptop.org>2012-11-07 18:32:14 (GMT)
committer Manuel Quiñones <manuq@laptop.org>2012-11-07 18:42:35 (GMT)
commitf750863f81440f18245538796110cf00d58cc1b8 (patch)
tree1f64bb9fd673dbe17efa06fc54d5fb857beffe6e
parent798548f856b8ada8a41cd700e1ed0f2c79a8643f (diff)
Buddy color: force bytestring encoding
When the color is given by the remote buddy, it comes as unicode, even when the PropertiesChanged signal is connected with byte_arrays=True in jarabe/model/neighborhood.py. The Rsvg.Handle.new_from_data method of toolkit needs a bytestring. So we cast it to str. Signed-off-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
-rw-r--r--src/jarabe/model/neighborhood.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jarabe/model/neighborhood.py b/src/jarabe/model/neighborhood.py
index 85c35c9..1267d50 100644
--- a/src/jarabe/model/neighborhood.py
+++ b/src/jarabe/model/neighborhood.py
@@ -924,7 +924,7 @@ class Neighborhood(GObject.GObject):
is_new = buddy.props.key is None and 'key' in properties
if 'color' in properties:
- buddy.props.color = XoColor(properties['color'])
+ buddy.props.color = XoColor(str(properties['color']))
if 'key' in properties:
buddy.props.key = properties['key']