Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/sugar
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@sugarlabs.org>2009-02-20 15:38:41 (GMT)
committer Tomeu Vizoso <tomeu@sugarlabs.org>2009-02-20 15:38:41 (GMT)
commitede6db947e438fc415e78640f69a3946f364ab10 (patch)
tree64764cdc08890379403b8d57ecb12afc49f91aeb /src/sugar
parentd8b1e62257d6bdbcd611f7a424249ef0eefb5713 (diff)
Don't try to hide the tray if the activity has none (alsroot) #395
Diffstat (limited to 'src/sugar')
-rw-r--r--src/sugar/graphics/window.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sugar/graphics/window.py b/src/sugar/graphics/window.py
index 1ad2bca..e82b3b9 100644
--- a/src/sugar/graphics/window.py
+++ b/src/sugar/graphics/window.py
@@ -192,7 +192,7 @@ class Window(gtk.Window):
def __key_press_cb(self, widget, event):
key = gtk.gdk.keyval_name(event.keyval)
if event.state & gtk.gdk.MOD1_MASK:
- if key == 'space':
+ if self.tray is not None and key == 'space':
self.tray.props.visible = not self.tray.props.visible
return True
elif key == 'Escape' and self._is_fullscreen and \