From ede6db947e438fc415e78640f69a3946f364ab10 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Fri, 20 Feb 2009 15:38:41 +0000 Subject: Don't try to hide the tray if the activity has none (alsroot) #395 --- (limited to 'src/sugar') 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 \ -- cgit v0.9.1