diff options
author | Pootle daemon <pootle@pootle.sugarlabs.org> | 2012-06-03 04:32:28 (GMT) |
---|---|---|
committer | Pootle daemon <pootle@pootle.sugarlabs.org> | 2012-06-03 04:32:28 (GMT) |
commit | 72d128955161302693abced7e768cf13bc6bc304 (patch) | |
tree | d3d863328051147c430bc67fecb79f257fcc6a19 /TurtleArtActivity.py | |
parent | a0e075f1b0663e5b412fb87271ff5e63d0622227 (diff) | |
parent | d791e764e51353e18efa2464cd623d4d0a91153f (diff) |
Merge branch 'master' of git.sugarlabs.org:turtleart/mainline
Diffstat (limited to 'TurtleArtActivity.py')
-rw-r--r-- | TurtleArtActivity.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/TurtleArtActivity.py b/TurtleArtActivity.py index d8a4a36..ce75c36 100644 --- a/TurtleArtActivity.py +++ b/TurtleArtActivity.py @@ -515,6 +515,26 @@ class TurtleArtActivity(activity.Activity): ''' Keep-button clicked. ''' self.jobject_new_patch() + def is_fullscreen(self): + ''' Are we in fullscreen mode (toolbars hidden)? ''' + # Fixme: this should be a exposed as a window property, not private + return self._is_fullscreen + + def toolbars_expanded(self): + ''' Are any toolbars expanded? ''' + if not self.has_toolbarbox: + return False + if self.palette_toolbar_button.is_expanded(): + return True + elif self.edit_toolbar_button.is_expanded(): + return True + elif self.view_toolbar_button.is_expanded(): + return True + elif self.activity_toolbar_button.is_expanded(): + return True + else: + return False + def _setup_toolbar(self): ''' Setup toolbar according to Sugar version. ''' if self.has_toolbarbox: |