From bee4119d91d4e4cc1ae5040b6b59789d9ff8e15d Mon Sep 17 00:00:00 2001 From: flavio Date: Sun, 09 Sep 2012 22:41:00 +0000 Subject: Change _shared_activity by shared_activity --- diff --git a/activity.py b/activity.py index 99eb8f0..4ba56db 100644 --- a/activity.py +++ b/activity.py @@ -44,9 +44,6 @@ class StopWatchActivity(Activity): GObject.threads_init() - # FIXME: object has no attribute _shared_activity - self._shared_activity = None - from sugar3.activity.widgets import StopButton, \ ShareButton, TitleEntry, ActivityButton @@ -116,13 +113,13 @@ class StopWatchActivity(Activity): SERVICE, {}) def _sharing_setup(self): - if self._shared_activity is None: + if self.shared_activity is None: self._logger.error('Failed to share or join activity') return - self.conn = self._shared_activity.telepathy_conn - self.tubes_chan = self._shared_activity.telepathy_tubes_chan - self.text_chan = self._shared_activity.telepathy_text_chan + self.conn = self.shared_activity.telepathy_conn + self.tubes_chan = self.shared_activity.telepathy_tubes_chan + self.text_chan = self.shared_activity.telepathy_text_chan self.tubes_chan[telepathy.CHANNEL_TYPE_TUBES].connect_to_signal('NewTube', self._new_tube_cb) @@ -135,7 +132,7 @@ class StopWatchActivity(Activity): self._logger.error('ListTubes() failed: %s', e) def _joined_cb(self, activity): - if not self._shared_activity: + if not self.shared_activity: return self._logger.debug('Joined an existing shared activity') -- cgit v0.9.1