Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorflavio <fdanesse@gmail.com>2012-09-09 22:41:00 (GMT)
committer flavio <fdanesse@gmail.com>2012-09-09 22:41:00 (GMT)
commitbee4119d91d4e4cc1ae5040b6b59789d9ff8e15d (patch)
treef0d556c7aab41984dc9f6f36054687b8c08fd3ac
parent852af92043e3a8ecab6056eb0e7fe96723b1ccbe (diff)
Change _shared_activity by shared_activityGtk3
-rw-r--r--activity.py13
1 files changed, 5 insertions, 8 deletions
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')