Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/view
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2007-04-11 02:24:31 (GMT)
committer Dan Williams <dcbw@redhat.com>2007-04-11 02:24:31 (GMT)
commitdefd9f76e3fd3fab2fbedadd0d948ea26fb7704c (patch)
treea14e52d04a71aca8c856aca554f9fe41b5034616 /shell/view
parent117934f7098652ebc92262356802d920bf4b92c5 (diff)
Convert icon data to python string before exposing it
Diffstat (limited to 'shell/view')
-rw-r--r--shell/view/BuddyMenu.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/shell/view/BuddyMenu.py b/shell/view/BuddyMenu.py
index 10b198d..1a76168 100644
--- a/shell/view/BuddyMenu.py
+++ b/shell/view/BuddyMenu.py
@@ -58,15 +58,12 @@ class BuddyMenu(Menu):
if not buddy_object:
return None
- pixbuf = None
icon_data = buddy_object.props.icon
- icon_data_string = ""
- for item in icon_data:
- if item < 0:
- item = item + 128
- icon_data_string += chr(item)
+ if not icon_data:
+ return None
pbl = gtk.gdk.PixbufLoader()
- pbl.write(icon_data_string)
+ pbl.write(icon_data)
+ pixbuf = None
try:
pbl.close()
pixbuf = pbl.get_pixbuf()