Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu.vizoso@collabora.co.uk>2010-07-09 15:31:50 (GMT)
committer Tomeu Vizoso <tomeu.vizoso@collabora.co.uk>2010-08-20 13:33:53 (GMT)
commitbd3a4ca747721f39eb8abf749a22f20c4ced115d (patch)
treea1d76e9e411ab61c811c0759c7d7af874f89f9fc
parentce87bb3ff6f2c75e0831dda678714721c3aa0aed (diff)
Take into account the "private" property when updating the scope toolbutton
-rw-r--r--src/sugar/activity/widgets.py3
1 files changed, 2 insertions, 1 deletions
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