From bd3a4ca747721f39eb8abf749a22f20c4ced115d Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Fri, 09 Jul 2010 15:31:50 +0000 Subject: Take into account the "private" property when updating the scope toolbutton --- diff --git a/src/sugar/activity/widgets.py b/src/sugar/activity/widgets.py index 5b712f2..b5e4ce7 100644 --- a/src/sugar/activity/widgets.py +++ b/src/sugar/activity/widgets.py @@ -149,7 +149,8 @@ class ShareButton(RadioMenuButton): def __update_share_cb(self, activity): self.neighborhood.handler_block(self._neighborhood_handle) try: - if activity.get_shared(): + if activity.shared_activity is not None and \ + not activity.shared_activity.props.private: self.private.props.sensitive = False self.neighborhood.props.sensitive = False self.neighborhood.props.active = True -- cgit v0.9.1