ugly workaround for a dbus < 0.61 bug
This commit is contained in:
parent
a0ed2fa232
commit
8ae9f43540
@ -246,7 +246,7 @@ class Activity(object):
|
||||
"""Marks this Activity as having changes. This usually means
|
||||
that this Activity's tab turns a red color or something else
|
||||
to notify the user that this Activity needs attention."""
|
||||
if not self.has_focus() and has_changes:
|
||||
if not self.get_has_focus() and has_changes:
|
||||
self._activity_object.set_has_changes(True)
|
||||
else:
|
||||
self._activity_object.set_has_changes(False)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user