Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormike <michael.jmontcalm@gmail.com>2009-12-03 21:32:52 (GMT)
committer mike <michael.jmontcalm@gmail.com>2009-12-03 21:32:52 (GMT)
commit5975c6117f99a413b0c86e8bc663414ce071784e (patch)
treef68d0cd717848b381a9b41a079cc37072793ae89
parent92c39857a4d825e9acbb633cfd6536c54739e6ee (diff)
Creator (credits for simpoir) : Closing creator view when Frame hides
-rw-r--r--src/jarabe/frame/frame.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/jarabe/frame/frame.py b/src/jarabe/frame/frame.py
index 55f866f..5d60da1 100644
--- a/src/jarabe/frame/frame.py
+++ b/src/jarabe/frame/frame.py
@@ -139,6 +139,12 @@ class Frame(object):
visible = property(is_visible, None)
def hide(self):
+ from sugar.tutorius.creator import default_creator
+
+ if default_creator().is_authoring:
+ default_creator()._overview.win.hide()
+ default_creator()._propedit.window.hide()
+
if self._animator:
self._animator.stop()
@@ -160,6 +166,11 @@ class Frame(object):
self._animator.add(_Animation(self, 1.0))
self._animator.start()
+ from sugar.tutorius.creator import default_creator
+ if default_creator().is_authoring:
+ default_creator()._overview.win.show()
+ default_creator()._propedit.window.show()
+
def move(self, pos):
self.current_position = pos
self._update_position()