Don't try to hide the tray if the activity has none (alsroot) #395

master
Tomeu Vizoso 16 years ago
parent d8b1e62257
commit ede6db947e

@ -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 \

Loading…
Cancel
Save