diff options
author | Walter Bender <walter.bender@gmail.com> | 2011-03-07 21:18:31 (GMT) |
---|---|---|
committer | Walter Bender <walter.bender@gmail.com> | 2011-03-07 21:18:31 (GMT) |
commit | e9bd72b5dec590b9e0eb4f605208a120d92f8e26 (patch) | |
tree | d833025186c9813b1d6dd19c61314540a52fe163 /PathsActivity.py | |
parent | bdb109493eb95c0092b901898c3b1162a9cd8d5b (diff) |
disable sharing (until sharing is implemented)
Diffstat (limited to 'PathsActivity.py')
-rw-r--r-- | PathsActivity.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/PathsActivity.py b/PathsActivity.py index 94b8b31..c7ddaea 100644 --- a/PathsActivity.py +++ b/PathsActivity.py @@ -112,6 +112,9 @@ class PathsActivity(activity.Activity): def _setup_toolbars(self, have_toolbox): """ Setup the toolbars.. """ + # no sharing + self.max_participants = 1 + if have_toolbox: toolbox = ToolbarBox() @@ -135,6 +138,12 @@ class PathsActivity(activity.Activity): toolbox.set_current_toolbar(1) toolbar = games_toolbar + # no sharing + if hasattr(toolbox, 'share'): + toolbox.share.hide() + elif hasattr(toolbox, 'props'): + toolbox.props.visible = False + self._new_game_button = _button_factory('new-game', _('Start a new game.'), self._new_game_cb, toolbar) |