Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/tawindow.py
diff options
context:
space:
mode:
authorRaul Gutierrez Segales <raul.gutierrez.segales@collabora.co.uk>2011-02-02 15:35:20 (GMT)
committer Raul Gutierrez Segales <raul.gutierrez.segales@collabora.co.uk>2011-02-02 15:35:20 (GMT)
commit725ac099fbdb5434c56110c2b8d9a1da4bbbb5b6 (patch)
tree119d5abcdc185238c1051f66e84a291485be2095 /TurtleArt/tawindow.py
parentab3ece2632fdd6fc3b5491ac7e9169d21f5f940d (diff)
Fix logic in sharing()
Diffstat (limited to 'TurtleArt/tawindow.py')
-rw-r--r--TurtleArt/tawindow.py14
1 files changed, 5 insertions, 9 deletions
diff --git a/TurtleArt/tawindow.py b/TurtleArt/tawindow.py
index f9c0d4b..ad830d9 100644
--- a/TurtleArt/tawindow.py
+++ b/TurtleArt/tawindow.py
@@ -100,6 +100,7 @@ class TurtleArtWindow():
def __init__(self, win, path, parent=None, mycolors=None, mynick=None):
self._loaded_project = ''
self.win = None
+ self._sharing = False
self.parent = parent
self.send_event = None # method to send events over the network
if type(win) == gtk.DrawingArea:
@@ -397,16 +398,11 @@ class TurtleArtWindow():
self.toolbar_shapes[_name].type = 'toolbar'
self.toolbar_shapes['stopiton'].hide()
- def sharing(self):
- """ Is a chattube available for share? """
- if self.running_sugar and hasattr(self.activity, 'chattube') and\
- self.activity.chattube is not None:
- return True
-
- if self.send_event:
- return True
+ def set_sharing(self, shared):
+ self._sharing = shared
- return False
+ def sharing(self):
+ return self._sharing
def is_project_empty(self):
""" Check to see if project has any blocks in use """