Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian <icarito@sugarlabs.org>2011-03-17 04:10:23 (GMT)
committer Sebastian <icarito@sugarlabs.org>2011-03-17 04:10:23 (GMT)
commitbf19503d3658fb6f218ad5eba892735122ffe590 (patch)
treec8666cd863bbc86ac8cd65ce8295a3e89ba88cfc
parentabf3c7fea7f2305090eb9dfcdd3600365195923b (diff)
Reappearence of greyed Share button (design feedback)HEADmaster
-rwxr-xr-xhelpactivity.py4
-rw-r--r--mybutton.py1
2 files changed, 4 insertions, 1 deletions
diff --git a/helpactivity.py b/helpactivity.py
index 4e1d3a6..4bb3a82 100755
--- a/helpactivity.py
+++ b/helpactivity.py
@@ -87,6 +87,10 @@ class HelpActivity(activity.Activity):
navtoolbar._forward.show()
toolitem.show()
+ # we do not have collaboration features
+ # make the share option insensitive
+ self.max_participants = 1
+
separator = gtk.SeparatorToolItem()
separator.props.draw = False
separator.set_expand(True)
diff --git a/mybutton.py b/mybutton.py
index e5c461b..b1f1f84 100644
--- a/mybutton.py
+++ b/mybutton.py
@@ -42,7 +42,6 @@ class MyActivityToolbarButton(ToolbarButton):
def __init__(self, activity, **kwargs):
toolbar = ActivityToolbar(activity, orientation_left=True)
- toolbar.share.hide()
toolbar.stop.hide()
toolbar.keep.hide()
toolbar.title.unset_flags(gtk.CAN_FOCUS)