Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/linkbutton.py
diff options
context:
space:
mode:
Diffstat (limited to 'linkbutton.py')
-rw-r--r--linkbutton.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/linkbutton.py b/linkbutton.py
index 2804397..d1b4ea9 100644
--- a/linkbutton.py
+++ b/linkbutton.py
@@ -40,8 +40,13 @@ class LinkButton(TrayButton, GObject.GObject):
None, ([str])),
}
- def __init__(self, url, buf, color, title, owner, index, hash):
+ def __init__(self, buf, color, title, owner, hash):
TrayButton.__init__(self)
+
+ # Color read from the Journal may be Unicode, but Rsvg needs
+ # it as single byte string:
+ if isinstance(color, unicode):
+ color = str(color)
self.set_image(buf, color.split(',')[1], color.split(',')[0])
self.hash = hash