diff --git a/src/sugar/activity/activity.py b/src/sugar/activity/activity.py index 598098d0..4d5fa7c9 100644 --- a/src/sugar/activity/activity.py +++ b/src/sugar/activity/activity.py @@ -192,7 +192,7 @@ class ActivityToolbar(gtk.Toolbar): self._activity.metadata['title_set_by_user'] = '1' self._activity.save() - shared_activity = self._activity.shared_activity + shared_activity = self._activity.get_shared_activity() if shared_activity: shared_activity.props.name = title @@ -837,6 +837,13 @@ class Activity(Window, gtk.Container): self.emit('joined') self.__privacy_changed_cb(self.shared_activity, None) + def get_shared_activity(self): + """Returns an instance of the shared Activity or None + + The shared activity is of type sugar.presence.activity.Activity + """ + return self._shared_activity + def get_shared(self): """Returns TRUE if the activity is shared on the mesh.""" if not self.shared_activity: