Activity: remove deprecated _shared_activity member

Use the get_shared_activity method instead

Signed-off-by: Simon Schampijer <simon@laptop.org>
Reviewed-by: Gonzalo Odiard <gonzalo@laptop.org>
Acked-by: Daniel Drake <dsd@laptop.org>
This commit is contained in:
Simon Schampijer 2012-01-11 17:51:37 +01:00
parent ae85dd62d4
commit 70cee44717

View File

@ -768,7 +768,7 @@ class Activity(Window, Gtk.Container):
The shared activity is of type sugar3.presence.activity.Activity The shared activity is of type sugar3.presence.activity.Activity
""" """
return self._shared_activity return self.shared_activity
def get_shared(self): def get_shared(self):
"""Returns TRUE if the activity is shared on the mesh.""" """Returns TRUE if the activity is shared on the mesh."""
@ -962,9 +962,6 @@ class Activity(Window, Gtk.Container):
def get_document_path(self, async_cb, async_err_cb): def get_document_path(self, async_cb, async_err_cb):
async_err_cb(NotImplementedError()) async_err_cb(NotImplementedError())
# DEPRECATED
_shared_activity = property(lambda self: self.shared_activity, None)
class _ClientHandler(dbus.service.Object, DBusProperties): class _ClientHandler(dbus.service.Object, DBusProperties):
def __init__(self, bundle_id, got_channel_cb): def __init__(self, bundle_id, got_channel_cb):