diff options
author | Dan Williams <dcbw@redhat.com> | 2007-04-11 02:24:31 (GMT) |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2007-04-11 02:24:31 (GMT) |
commit | defd9f76e3fd3fab2fbedadd0d948ea26fb7704c (patch) | |
tree | a14e52d04a71aca8c856aca554f9fe41b5034616 /shell/view | |
parent | 117934f7098652ebc92262356802d920bf4b92c5 (diff) |
Convert icon data to python string before exposing it
Diffstat (limited to 'shell/view')
-rw-r--r-- | shell/view/BuddyMenu.py | 11 |
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() |