Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/shell/shell.py
diff options
context:
space:
mode:
Diffstat (limited to 'sugar/shell/shell.py')
-rwxr-xr-xsugar/shell/shell.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/sugar/shell/shell.py b/sugar/shell/shell.py
index 893e291..9d8d3dc 100755
--- a/sugar/shell/shell.py
+++ b/sugar/shell/shell.py
@@ -156,8 +156,9 @@ class ActivityHost(dbus.service.Object):
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)
+ 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)
#print pixbuf
@@ -408,4 +409,5 @@ if __name__ == "__main__":
try:
gtk.main()
except KeyboardInterrupt:
+ print 'Ctrl+c pressed, exiting...'
pass