sugar/presence/activity.py: make Activity.leave call the PS
Needed to make buddy-left work
This commit is contained in:
parent
aa6a024368
commit
66983f0d24
@ -166,6 +166,17 @@ class Activity(gobject.GObject):
|
||||
(bus_name, connection, channels) = self._activity.GetChannels()
|
||||
return bus_name, connection, channels
|
||||
|
||||
def _leave_cb(self):
|
||||
# XXX Is this the right thing to do?
|
||||
self.emit("joined", False, "left activity")
|
||||
|
||||
def _leave_error_cb(self, err):
|
||||
# XXX We are closing down anyway
|
||||
pass
|
||||
|
||||
def leave(self):
|
||||
"""Leave this shared activity"""
|
||||
# FIXME
|
||||
self._joined = False
|
||||
self._activity.Leave(reply_handler=self._leave_cb,
|
||||
error_handler=self._leave_error_cb)
|
||||
|
Loading…
Reference in New Issue
Block a user