diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-10-19 13:44:00 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-10-19 13:44:00 (GMT) |
commit | 62659e280638e8b4a7509dbb1a6c6cd8c601bd7f (patch) | |
tree | 5031fe27f7494c8a6e68dfb1543bd8241aa65de3 /shell | |
parent | cd29967c2ece4e5569bbc5e11752e415ab971fda (diff) |
Show the share button only when the activity is not shared
Diffstat (limited to 'shell')
-rw-r--r-- | shell/view/frame/ZoomBox.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/shell/view/frame/ZoomBox.py b/shell/view/frame/ZoomBox.py index 3c21f20..45c76cd 100644 --- a/shell/view/frame/ZoomBox.py +++ b/shell/view/frame/ZoomBox.py @@ -29,9 +29,16 @@ class ActivityMenu(Menu): def __init__(self, activity_host): Menu.__init__(self, activity_host.get_title()) + if not activity_host.get_shared(): + self._add_mesh_action() + + self._add_close_action() + + def _add_mesh_action(self): icon = CanvasIcon(icon_name='stock-share-mesh') self.add_action(icon, ActivityMenu.ACTION_SHARE) + def _add_close_action(self): icon = CanvasIcon(icon_name='stock-close') self.add_action(icon, ActivityMenu.ACTION_CLOSE) |