diff options
author | Walter Bender <walter.bender@gmail.com> | 2012-06-02 12:10:46 (GMT) |
---|---|---|
committer | Walter Bender <walter.bender@gmail.com> | 2012-06-02 12:10:46 (GMT) |
commit | c74c8f22407ca7028eeb9551fa2925b75f54cac3 (patch) | |
tree | e0d1fbb8a9b245324f96bcb42f6075eeb62a37b2 /TurtleArtActivity.py | |
parent | 6a8c13371d35597dad26b50191ac3ae4291add64 (diff) |
account for toolbars when positioning video window overlay
Diffstat (limited to 'TurtleArtActivity.py')
-rw-r--r-- | TurtleArtActivity.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/TurtleArtActivity.py b/TurtleArtActivity.py index d8a4a36..7a9d9ad 100644 --- a/TurtleArtActivity.py +++ b/TurtleArtActivity.py @@ -515,6 +515,24 @@ 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 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: |