When serializing an activity, allow using the owner's nick name for the service name
This commit is contained in:
parent
40483bb856
commit
e7f9a0a728
@ -143,8 +143,11 @@ class Service(object):
|
||||
if uid and not self._properties.has_key(_ACTIVITY_UID_TAG):
|
||||
self._properties[_ACTIVITY_UID_TAG] = uid
|
||||
|
||||
def serialize(self):
|
||||
def serialize(self, owner=None):
|
||||
sdict = {}
|
||||
if owner is not None:
|
||||
sdict['name'] = dbus.Variant(owner.get_nick_name())
|
||||
else:
|
||||
sdict['name'] = dbus.Variant(self._name)
|
||||
sdict['full_stype'] = dbus.Variant(self._full_stype)
|
||||
sdict['activity_stype'] = dbus.Variant(self._activity_stype)
|
||||
|
Loading…
Reference in New Issue
Block a user