From 725ac099fbdb5434c56110c2b8d9a1da4bbbb5b6 Mon Sep 17 00:00:00 2001 From: Raul Gutierrez Segales Date: Wed, 02 Feb 2011 15:35:20 +0000 Subject: Fix logic in sharing() --- (limited to 'TurtleArt/tawindow.py') 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 """ -- cgit v0.9.1