diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2006-06-07 17:26:01 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2006-06-07 17:26:01 (GMT) |
commit | 8ae9f4354061591bc0284cc53546ac481f6c1f5a (patch) | |
tree | 6bb3633ed31f367578446c0641f60033f83d7ecd /sugar/shell/shell.py | |
parent | a0ed2fa232f54a93199c94f8efff169d52556667 (diff) |
ugly workaround for a dbus < 0.61 bug
Diffstat (limited to 'sugar/shell/shell.py')
-rwxr-xr-x | sugar/shell/shell.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sugar/shell/shell.py b/sugar/shell/shell.py index 7c703c5..2567491 100755 --- a/sugar/shell/shell.py +++ b/sugar/shell/shell.py @@ -152,6 +152,9 @@ class ActivityHost(dbus.service.Object): #print " data = ", data pixstr = "" for c in data: + # Work around for a bug in dbus < 0.61 where integers + # are not correctly marshalled + if c < 0: c += 256 pixstr += chr(c) pixbuf = gtk.gdk.pixbuf_new_from_data(pixstr, colorspace, has_alpha, bits_per_sample, width, height, rowstride) |